10:19:52.643 [Test worker] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
10:19:52.655 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
10:19:52.658 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
10:19:52.659 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
10:19:52.660 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true
10:19:52.662 [Test worker] DEBUG i.n.util.internal.PlatformDependent - Java version: 8
10:19:52.662 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
10:19:52.662 [Test worker] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: available
10:19:52.663 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false
10:19:52.665 [Test worker] DEBUG i.n.util.internal.PlatformDependent - Javassist: unavailable
10:19:52.665 [Test worker] DEBUG i.n.util.internal.PlatformDependent - You don't have Javassist in your class path or you don't have enough permission to load dynamically generated classes. Please check the configuration for better performance.
10:19:52.665 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
10:19:52.666 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
10:19:52.666 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
10:19:53.309 [Test worker] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 16
10:19:53.522 [Test worker] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
10:19:53.522 [Test worker] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
10:19:53.750 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 16
10:19:53.751 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 16
10:19:53.752 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
10:19:53.753 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
10:19:53.754 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
10:19:53.754 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
10:19:53.755 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
10:19:53.755 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
10:19:53.756 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
10:19:53.756 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
10:19:53.848 [MockServer thread for port: 43815] DEBUG i.n.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0xe1d921fff2aa4704 (took 26 ms)
10:19:53.945 [MockServer thread for port: 43815] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled
10:19:53.959 [MockServer thread for port: 43815] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536
10:19:53.960 [MockServer thread for port: 43815] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
10:19:53.966 [MockServer thread for port: 43815] DEBUG io.netty.util.NetUtil - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
10:19:53.968 [MockServer thread for port: 43815] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128
10:19:53.988 [MockServer thread for port: 43815] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43815
10:19:54.833 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:54.920 [Test worker] DEBUG o.m.c.ConfigurationProperties - Property file not found on classpath using path [mockserver.properties]
10:19:54.921 [Test worker] DEBUG o.m.c.ConfigurationProperties - Property file not found using path [mockserver.properties]
10:19:55.044 [nioEventLoopGroup-4-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.bytebuf.checkAccessible: true
10:19:55.060 [nioEventLoopGroup-4-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
10:19:55.060 [nioEventLoopGroup-4-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxRecords: 4
10:19:55.180 [nioEventLoopGroup-4-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacity.default: 262144
10:19:55.809 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd54cb0bb, /127.0.0.1:38556 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:19:56.104 [nioEventLoopGroup-3-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:19:56.108 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd54cb0bb, /127.0.0.1:38556 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:56.118 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd54cb0bb, /127.0.0.1:38556 => /127.0.0.1:43815] FLUSH
10:19:56.124 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:56.128 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd54cb0bb, /127.0.0.1:38556 => /127.0.0.1:43815] FLUSH
10:19:56.129 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd54cb0bb, /127.0.0.1:38556 :> /127.0.0.1:43815] INACTIVE
10:19:56.130 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd54cb0bb, /127.0.0.1:38556 :> /127.0.0.1:43815] UNREGISTERED
10:19:56.140 [nioEventLoopGroup-4-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-4-1
10:19:56.220 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:56.282 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a249a1, /127.0.0.1:38570 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:19:56.310 [nioEventLoopGroup-3-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:19:56.312 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a249a1, /127.0.0.1:38570 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:56.312 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a249a1, /127.0.0.1:38570 => /127.0.0.1:43815] FLUSH
10:19:56.316 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a249a1, /127.0.0.1:38570 => /127.0.0.1:43815] FLUSH
10:19:56.316 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a249a1, /127.0.0.1:38570 :> /127.0.0.1:43815] INACTIVE
10:19:56.316 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a249a1, /127.0.0.1:38570 :> /127.0.0.1:43815] UNREGISTERED
10:19:56.316 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:56.323 [nioEventLoopGroup-6-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-6-1
10:19:56.369 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:56.458 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ac71bd2, /127.0.0.1:38576 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:19:56.493 [nioEventLoopGroup-3-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:19:56.510 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ac71bd2, /127.0.0.1:38576 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:56.514 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ac71bd2, /127.0.0.1:38576 => /127.0.0.1:43815] FLUSH
10:19:56.520 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:56.527 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ac71bd2, /127.0.0.1:38576 => /127.0.0.1:43815] FLUSH
10:19:56.529 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ac71bd2, /127.0.0.1:38576 :> /127.0.0.1:43815] INACTIVE
10:19:56.530 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ac71bd2, /127.0.0.1:38576 :> /127.0.0.1:43815] UNREGISTERED
10:19:56.598 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:56.611 [nioEventLoopGroup-7-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-7-1
10:19:56.643 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1b6c45, /127.0.0.1:38582 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:19:56.652 [nioEventLoopGroup-3-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:19:56.653 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1b6c45, /127.0.0.1:38582 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:56.653 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1b6c45, /127.0.0.1:38582 => /127.0.0.1:43815] FLUSH
10:19:56.655 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1b6c45, /127.0.0.1:38582 => /127.0.0.1:43815] FLUSH
10:19:56.654 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:56.655 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1b6c45, /127.0.0.1:38582 :> /127.0.0.1:43815] INACTIVE
10:19:56.656 [nioEventLoopGroup-8-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-8-1
10:19:56.676 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1b6c45, /127.0.0.1:38582 :> /127.0.0.1:43815] UNREGISTERED
10:19:56.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:56.758 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x722b8a49, /127.0.0.1:38588 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:19:56.765 [nioEventLoopGroup-3-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:19:56.766 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x722b8a49, /127.0.0.1:38588 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:56.766 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x722b8a49, /127.0.0.1:38588 => /127.0.0.1:43815] FLUSH
10:19:56.768 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x722b8a49, /127.0.0.1:38588 => /127.0.0.1:43815] FLUSH
10:19:56.767 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:56.768 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x722b8a49, /127.0.0.1:38588 :> /127.0.0.1:43815] INACTIVE
10:19:56.768 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x722b8a49, /127.0.0.1:38588 :> /127.0.0.1:43815] UNREGISTERED
10:19:56.769 [nioEventLoopGroup-9-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-9-1
10:19:56.806 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:56.835 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81b8ff22, /127.0.0.1:38594 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:19:56.840 [nioEventLoopGroup-3-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:19:56.841 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81b8ff22, /127.0.0.1:38594 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:56.842 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81b8ff22, /127.0.0.1:38594 => /127.0.0.1:43815] FLUSH
10:19:56.844 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:56.845 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81b8ff22, /127.0.0.1:38594 => /127.0.0.1:43815] FLUSH
10:19:56.845 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81b8ff22, /127.0.0.1:38594 :> /127.0.0.1:43815] INACTIVE
10:19:56.845 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81b8ff22, /127.0.0.1:38594 :> /127.0.0.1:43815] UNREGISTERED
10:19:56.849 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:56.850 [nioEventLoopGroup-10-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-10-1
10:19:56.884 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe574860, /127.0.0.1:38598 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:19:56.888 [nioEventLoopGroup-3-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:19:56.889 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe574860, /127.0.0.1:38598 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:56.890 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe574860, /127.0.0.1:38598 => /127.0.0.1:43815] FLUSH
10:19:56.891 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe574860, /127.0.0.1:38598 => /127.0.0.1:43815] FLUSH
10:19:56.890 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:56.891 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe574860, /127.0.0.1:38598 :> /127.0.0.1:43815] INACTIVE
10:19:56.891 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe574860, /127.0.0.1:38598 :> /127.0.0.1:43815] UNREGISTERED
10:19:56.891 [nioEventLoopGroup-11-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-11-1
10:19:56.973 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:57.004 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b575ec0, /127.0.0.1:38606 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:19:57.015 [nioEventLoopGroup-3-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:19:57.016 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b575ec0, /127.0.0.1:38606 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:57.016 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b575ec0, /127.0.0.1:38606 => /127.0.0.1:43815] FLUSH
10:19:57.027 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:57.027 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b575ec0, /127.0.0.1:38606 => /127.0.0.1:43815] FLUSH
10:19:57.029 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b575ec0, /127.0.0.1:38606 :> /127.0.0.1:43815] INACTIVE
10:19:57.029 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b575ec0, /127.0.0.1:38606 :> /127.0.0.1:43815] UNREGISTERED
10:19:57.028 [nioEventLoopGroup-12-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-12-1
10:19:57.044 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:57.069 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd56321d9, /127.0.0.1:38608 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:19:57.072 [nioEventLoopGroup-3-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:19:57.073 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd56321d9, /127.0.0.1:38608 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:57.073 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd56321d9, /127.0.0.1:38608 => /127.0.0.1:43815] FLUSH
10:19:57.077 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:57.079 [nioEventLoopGroup-13-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-13-1
10:19:57.080 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd56321d9, /127.0.0.1:38608 => /127.0.0.1:43815] FLUSH
10:19:57.082 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd56321d9, /127.0.0.1:38608 :> /127.0.0.1:43815] INACTIVE
10:19:57.082 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd56321d9, /127.0.0.1:38608 :> /127.0.0.1:43815] UNREGISTERED
10:19:57.099 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:57.133 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb08d20ef, /127.0.0.1:38610 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:19:57.150 [nioEventLoopGroup-3-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:19:57.151 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb08d20ef, /127.0.0.1:38610 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:57.153 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb08d20ef, /127.0.0.1:38610 => /127.0.0.1:43815] FLUSH
10:19:57.155 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:57.156 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb08d20ef, /127.0.0.1:38610 => /127.0.0.1:43815] FLUSH
10:19:57.157 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb08d20ef, /127.0.0.1:38610 :> /127.0.0.1:43815] INACTIVE
10:19:57.158 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb08d20ef, /127.0.0.1:38610 :> /127.0.0.1:43815] UNREGISTERED
10:19:57.162 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:57.171 [nioEventLoopGroup-14-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-14-1
10:19:57.225 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21e3396, /127.0.0.1:38614 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:19:57.227 [nioEventLoopGroup-3-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:19:57.230 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21e3396, /127.0.0.1:38614 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:57.235 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21e3396, /127.0.0.1:38614 => /127.0.0.1:43815] FLUSH
10:19:57.237 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:57.239 [nioEventLoopGroup-15-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-15-1
10:19:57.240 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21e3396, /127.0.0.1:38614 => /127.0.0.1:43815] FLUSH
10:19:57.241 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21e3396, /127.0.0.1:38614 :> /127.0.0.1:43815] INACTIVE
10:19:57.241 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf21e3396, /127.0.0.1:38614 :> /127.0.0.1:43815] UNREGISTERED
10:19:57.330 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:57.370 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bb790e, /127.0.0.1:38616 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:19:57.378 [nioEventLoopGroup-3-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:19:57.379 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bb790e, /127.0.0.1:38616 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:57.380 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bb790e, /127.0.0.1:38616 => /127.0.0.1:43815] FLUSH
10:19:57.381 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:57.383 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bb790e, /127.0.0.1:38616 => /127.0.0.1:43815] FLUSH
10:19:57.384 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bb790e, /127.0.0.1:38616 :> /127.0.0.1:43815] INACTIVE
10:19:57.384 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7bb790e, /127.0.0.1:38616 :> /127.0.0.1:43815] UNREGISTERED
10:19:57.429 [nioEventLoopGroup-16-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-16-1
10:19:57.473 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:19:57.507 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb531b380, /127.0.0.1:38622 => /127.0.0.1:43815] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:19:57.510 [nioEventLoopGroup-3-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:19:57.514 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb531b380, /127.0.0.1:38622 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:19:57.519 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb531b380, /127.0.0.1:38622 => /127.0.0.1:43815] FLUSH
10:19:57.521 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:19:57.523 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb531b380, /127.0.0.1:38622 => /127.0.0.1:43815] FLUSH
10:19:57.523 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb531b380, /127.0.0.1:38622 :> /127.0.0.1:43815] INACTIVE
10:19:57.524 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb531b380, /127.0.0.1:38622 :> /127.0.0.1:43815] UNREGISTERED
10:19:57.537 [nioEventLoopGroup-17-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-17-1
10:20:01.210 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa0a1c89, /127.0.0.1:38706 => /127.0.0.1:43815] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:43815
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:01.215 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:01.216 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:01.218 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:01.219 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:01.220 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:01.221 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:01.223 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:01.233 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:01.238 [nioEventLoopGroup-3-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:01.240 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa0a1c89, /127.0.0.1:38706 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:01.241 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa0a1c89, /127.0.0.1:38706 => /127.0.0.1:43815] FLUSH
10:20:02.061 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ded2ab, /127.0.0.1:38724 => /127.0.0.1:43815] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:43815
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:02.064 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:02.065 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:02.067 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:02.079 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:02.082 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:02.102 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:02.114 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:02.120 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:02.127 [nioEventLoopGroup-3-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43815" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:02.133 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ded2ab, /127.0.0.1:38724 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:02.133 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ded2ab, /127.0.0.1:38724 => /127.0.0.1:43815] FLUSH
10:20:02.178 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:02.216 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc29e6ba3, /127.0.0.1:38730 => /127.0.0.1:43815] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43815
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:02.232 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc29e6ba3, /127.0.0.1:38730 => /127.0.0.1:43815] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:02.233 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc29e6ba3, /127.0.0.1:38730 => /127.0.0.1:43815] FLUSH
10:20:02.234 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc29e6ba3, /127.0.0.1:38730 => /127.0.0.1:43815] CLOSE()
10:20:02.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:02.249 [nioEventLoopGroup-18-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-18-1
10:20:02.328 [nioEventLoopGroup-3-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-7
10:20:02.329 [nioEventLoopGroup-3-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-1
10:20:02.351 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ded2ab, /127.0.0.1:38724 :> /127.0.0.1:43815] INACTIVE
10:20:02.351 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ded2ab, /127.0.0.1:38724 :> /127.0.0.1:43815] UNREGISTERED
10:20:02.352 [nioEventLoopGroup-3-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-8
10:20:02.353 [nioEventLoopGroup-3-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-4
10:20:02.354 [nioEventLoopGroup-3-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-3
10:20:02.354 [nioEventLoopGroup-3-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-2
10:20:02.356 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa0a1c89, /127.0.0.1:38706 :> /127.0.0.1:43815] INACTIVE
10:20:02.356 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa0a1c89, /127.0.0.1:38706 :> /127.0.0.1:43815] UNREGISTERED
10:20:02.373 [nioEventLoopGroup-3-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-11
10:20:02.373 [nioEventLoopGroup-3-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-12
10:20:02.373 [nioEventLoopGroup-3-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-10
10:20:02.373 [nioEventLoopGroup-3-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-9
10:20:02.374 [nioEventLoopGroup-3-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-6
10:20:02.374 [nioEventLoopGroup-3-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-5
10:20:02.374 [nioEventLoopGroup-3-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-13
10:20:02.714 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:02.715 [MockServer thread for port: 40163] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40163
10:20:02.743 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4cb63d8, /127.0.0.1:48724 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:02.757 [nioEventLoopGroup-20-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:02.761 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4cb63d8, /127.0.0.1:48724 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:02.763 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4cb63d8, /127.0.0.1:48724 => /127.0.0.1:40163] FLUSH
10:20:02.764 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:02.767 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4cb63d8, /127.0.0.1:48724 => /127.0.0.1:40163] FLUSH
10:20:02.768 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4cb63d8, /127.0.0.1:48724 :> /127.0.0.1:40163] INACTIVE
10:20:02.768 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa4cb63d8, /127.0.0.1:48724 :> /127.0.0.1:40163] UNREGISTERED
10:20:02.806 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:02.823 [nioEventLoopGroup-21-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-21-1
10:20:02.840 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc29e6ba3, /127.0.0.1:38730 :> /127.0.0.1:43815] FLUSH
10:20:02.840 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc29e6ba3, /127.0.0.1:38730 :> /127.0.0.1:43815] INACTIVE
10:20:02.840 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc29e6ba3, /127.0.0.1:38730 :> /127.0.0.1:43815] UNREGISTERED
10:20:02.844 [nioEventLoopGroup-3-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-16
10:20:02.849 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c4cc6a3, /127.0.0.1:48732 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:02.856 [nioEventLoopGroup-20-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:02.859 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c4cc6a3, /127.0.0.1:48732 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:02.860 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c4cc6a3, /127.0.0.1:48732 => /127.0.0.1:40163] FLUSH
10:20:02.862 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:02.863 [nioEventLoopGroup-22-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-22-1
10:20:02.864 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c4cc6a3, /127.0.0.1:48732 => /127.0.0.1:40163] FLUSH
10:20:02.864 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c4cc6a3, /127.0.0.1:48732 :> /127.0.0.1:40163] INACTIVE
10:20:02.864 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c4cc6a3, /127.0.0.1:48732 :> /127.0.0.1:40163] UNREGISTERED
10:20:02.890 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:02.912 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec143d14, /127.0.0.1:48734 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:02.923 [nioEventLoopGroup-20-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:02.924 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec143d14, /127.0.0.1:48734 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:02.924 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec143d14, /127.0.0.1:48734 => /127.0.0.1:40163] FLUSH
10:20:02.928 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:02.929 [nioEventLoopGroup-23-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-23-1
10:20:02.934 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec143d14, /127.0.0.1:48734 => /127.0.0.1:40163] FLUSH
10:20:02.934 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec143d14, /127.0.0.1:48734 :> /127.0.0.1:40163] INACTIVE
10:20:02.934 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec143d14, /127.0.0.1:48734 :> /127.0.0.1:40163] UNREGISTERED
10:20:02.970 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.039 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a495107, /127.0.0.1:48738 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.043 [nioEventLoopGroup-20-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:03.044 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a495107, /127.0.0.1:48738 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.044 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a495107, /127.0.0.1:48738 => /127.0.0.1:40163] FLUSH
10:20:03.045 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a495107, /127.0.0.1:48738 => /127.0.0.1:40163] FLUSH
10:20:03.045 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a495107, /127.0.0.1:48738 :> /127.0.0.1:40163] INACTIVE
10:20:03.045 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a495107, /127.0.0.1:48738 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.045 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.050 [nioEventLoopGroup-24-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-24-1
10:20:03.070 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.095 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x668fd92a, /127.0.0.1:48742 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.107 [nioEventLoopGroup-20-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:03.109 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x668fd92a, /127.0.0.1:48742 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.111 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x668fd92a, /127.0.0.1:48742 => /127.0.0.1:40163] FLUSH
10:20:03.113 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.116 [nioEventLoopGroup-25-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-25-1
10:20:03.116 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x668fd92a, /127.0.0.1:48742 => /127.0.0.1:40163] FLUSH
10:20:03.120 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x668fd92a, /127.0.0.1:48742 :> /127.0.0.1:40163] INACTIVE
10:20:03.121 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x668fd92a, /127.0.0.1:48742 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.235 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.252 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1456c677, /127.0.0.1:48752 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.258 [nioEventLoopGroup-20-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:03.260 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1456c677, /127.0.0.1:48752 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.261 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1456c677, /127.0.0.1:48752 => /127.0.0.1:40163] FLUSH
10:20:03.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.263 [nioEventLoopGroup-26-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-26-1
10:20:03.264 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1456c677, /127.0.0.1:48752 => /127.0.0.1:40163] FLUSH
10:20:03.265 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1456c677, /127.0.0.1:48752 :> /127.0.0.1:40163] INACTIVE
10:20:03.265 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1456c677, /127.0.0.1:48752 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.294 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.312 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x887d83de, /127.0.0.1:48756 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.314 [nioEventLoopGroup-20-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:03.315 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x887d83de, /127.0.0.1:48756 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.316 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x887d83de, /127.0.0.1:48756 => /127.0.0.1:40163] FLUSH
10:20:03.317 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.318 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x887d83de, /127.0.0.1:48756 => /127.0.0.1:40163] FLUSH
10:20:03.318 [nioEventLoopGroup-27-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-27-1
10:20:03.318 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x887d83de, /127.0.0.1:48756 :> /127.0.0.1:40163] INACTIVE
10:20:03.318 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x887d83de, /127.0.0.1:48756 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.353 [nioEventLoopGroup-3-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-15
10:20:03.357 [nioEventLoopGroup-3-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-14
10:20:03.368 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61065c0, /127.0.0.1:48762 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.381 [nioEventLoopGroup-20-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:03.386 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61065c0, /127.0.0.1:48762 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.387 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61065c0, /127.0.0.1:48762 => /127.0.0.1:40163] FLUSH
10:20:03.388 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.389 [nioEventLoopGroup-28-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-28-1
10:20:03.393 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61065c0, /127.0.0.1:48762 => /127.0.0.1:40163] FLUSH
10:20:03.394 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61065c0, /127.0.0.1:48762 :> /127.0.0.1:40163] INACTIVE
10:20:03.394 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa61065c0, /127.0.0.1:48762 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.395 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.414 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf99067, /127.0.0.1:48766 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.436 [nioEventLoopGroup-20-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:03.437 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf99067, /127.0.0.1:48766 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.437 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf99067, /127.0.0.1:48766 => /127.0.0.1:40163] FLUSH
10:20:03.438 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf99067, /127.0.0.1:48766 => /127.0.0.1:40163] FLUSH
10:20:03.438 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.439 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf99067, /127.0.0.1:48766 :> /127.0.0.1:40163] INACTIVE
10:20:03.439 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf99067, /127.0.0.1:48766 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.447 [nioEventLoopGroup-29-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-29-1
10:20:03.459 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.464 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x807be7a5, /127.0.0.1:48774 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.466 [nioEventLoopGroup-20-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:03.467 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x807be7a5, /127.0.0.1:48774 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.467 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x807be7a5, /127.0.0.1:48774 => /127.0.0.1:40163] FLUSH
10:20:03.468 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x807be7a5, /127.0.0.1:48774 => /127.0.0.1:40163] FLUSH
10:20:03.468 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.468 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x807be7a5, /127.0.0.1:48774 :> /127.0.0.1:40163] INACTIVE
10:20:03.468 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x807be7a5, /127.0.0.1:48774 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.469 [nioEventLoopGroup-30-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-30-1
10:20:03.485 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.493 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60c7d73e, /127.0.0.1:48778 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.495 [nioEventLoopGroup-20-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:03.496 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60c7d73e, /127.0.0.1:48778 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.497 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60c7d73e, /127.0.0.1:48778 => /127.0.0.1:40163] FLUSH
10:20:03.499 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.500 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60c7d73e, /127.0.0.1:48778 => /127.0.0.1:40163] FLUSH
10:20:03.500 [nioEventLoopGroup-31-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-31-1
10:20:03.500 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60c7d73e, /127.0.0.1:48778 :> /127.0.0.1:40163] INACTIVE
10:20:03.500 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60c7d73e, /127.0.0.1:48778 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.576 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.604 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c8162cd, /127.0.0.1:48780 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.611 [nioEventLoopGroup-20-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:03.618 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c8162cd, /127.0.0.1:48780 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.619 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c8162cd, /127.0.0.1:48780 => /127.0.0.1:40163] FLUSH
10:20:03.620 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.621 [nioEventLoopGroup-32-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-32-1
10:20:03.623 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c8162cd, /127.0.0.1:48780 => /127.0.0.1:40163] FLUSH
10:20:03.626 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c8162cd, /127.0.0.1:48780 :> /127.0.0.1:40163] INACTIVE
10:20:03.626 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c8162cd, /127.0.0.1:48780 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:03.700 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7bd39, /127.0.0.1:48782 => /127.0.0.1:40163] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:03.732 [nioEventLoopGroup-20-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:03.736 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7bd39, /127.0.0.1:48782 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.737 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7bd39, /127.0.0.1:48782 => /127.0.0.1:40163] FLUSH
10:20:03.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.740 [nioEventLoopGroup-33-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-33-1
10:20:03.752 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7bd39, /127.0.0.1:48782 => /127.0.0.1:40163] FLUSH
10:20:03.752 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7bd39, /127.0.0.1:48782 :> /127.0.0.1:40163] INACTIVE
10:20:03.753 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e7bd39, /127.0.0.1:48782 :> /127.0.0.1:40163] UNREGISTERED
10:20:03.794 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc68faff, /127.0.0.1:48790 => /127.0.0.1:40163] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:40163
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:03.796 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.797 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.798 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:03.799 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.800 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.801 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.802 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.803 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.804 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:03.806 [nioEventLoopGroup-20-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:03.806 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc68faff, /127.0.0.1:48790 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:03.806 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc68faff, /127.0.0.1:48790 => /127.0.0.1:40163] FLUSH
10:20:03.837 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x467917d8, /127.0.0.1:48792 => /127.0.0.1:40163] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:40163
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:03.847 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.848 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.849 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:03.858 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.864 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.871 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.875 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.887 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:03.888 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:03.889 [nioEventLoopGroup-20-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40163" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:03.890 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x467917d8, /127.0.0.1:48792 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:03.890 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x467917d8, /127.0.0.1:48792 => /127.0.0.1:40163] FLUSH
10:20:03.891 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:03.929 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4227cf8c, /127.0.0.1:48796 => /127.0.0.1:40163] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40163
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:03.936 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4227cf8c, /127.0.0.1:48796 => /127.0.0.1:40163] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:03.937 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4227cf8c, /127.0.0.1:48796 => /127.0.0.1:40163] FLUSH
10:20:03.938 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4227cf8c, /127.0.0.1:48796 => /127.0.0.1:40163] CLOSE()
10:20:03.940 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:03.942 [nioEventLoopGroup-34-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-34-1
10:20:04.168 [nioEventLoopGroup-20-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-4
10:20:04.168 [nioEventLoopGroup-20-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-7
10:20:04.168 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc68faff, /127.0.0.1:48790 :> /127.0.0.1:40163] INACTIVE
10:20:04.168 [nioEventLoopGroup-20-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-2
10:20:04.168 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc68faff, /127.0.0.1:48790 :> /127.0.0.1:40163] UNREGISTERED
10:20:04.168 [nioEventLoopGroup-20-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-3
10:20:04.168 [nioEventLoopGroup-20-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-5
10:20:04.168 [nioEventLoopGroup-20-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-6
10:20:04.168 [nioEventLoopGroup-20-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-8
10:20:04.169 [nioEventLoopGroup-20-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-10
10:20:04.169 [nioEventLoopGroup-20-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-11
10:20:04.169 [nioEventLoopGroup-20-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-12
10:20:04.169 [nioEventLoopGroup-20-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-13
10:20:04.169 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x467917d8, /127.0.0.1:48792 :> /127.0.0.1:40163] INACTIVE
10:20:04.210 [nioEventLoopGroup-20-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-1
10:20:04.212 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x467917d8, /127.0.0.1:48792 :> /127.0.0.1:40163] UNREGISTERED
10:20:04.212 [nioEventLoopGroup-20-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-9
10:20:04.470 [MockServer thread for port: 44226] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44226
10:20:04.470 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.493 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d462808, /127.0.0.1:52408 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.510 [nioEventLoopGroup-36-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:04.518 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d462808, /127.0.0.1:52408 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.518 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d462808, /127.0.0.1:52408 => /127.0.0.1:44226] FLUSH
10:20:04.519 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d462808, /127.0.0.1:52408 => /127.0.0.1:44226] FLUSH
10:20:04.519 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.519 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d462808, /127.0.0.1:52408 :> /127.0.0.1:44226] INACTIVE
10:20:04.520 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d462808, /127.0.0.1:52408 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.534 [nioEventLoopGroup-37-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-37-1
10:20:04.576 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.586 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cbd3ed3, /127.0.0.1:52420 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.591 [nioEventLoopGroup-36-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:04.592 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cbd3ed3, /127.0.0.1:52420 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.592 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cbd3ed3, /127.0.0.1:52420 => /127.0.0.1:44226] FLUSH
10:20:04.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.604 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cbd3ed3, /127.0.0.1:52420 => /127.0.0.1:44226] FLUSH
10:20:04.604 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cbd3ed3, /127.0.0.1:52420 :> /127.0.0.1:44226] INACTIVE
10:20:04.604 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cbd3ed3, /127.0.0.1:52420 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.605 [nioEventLoopGroup-38-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-38-1
10:20:04.620 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.626 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeab0b18f, /127.0.0.1:52424 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.628 [nioEventLoopGroup-36-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:04.628 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeab0b18f, /127.0.0.1:52424 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.628 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeab0b18f, /127.0.0.1:52424 => /127.0.0.1:44226] FLUSH
10:20:04.629 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.630 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeab0b18f, /127.0.0.1:52424 => /127.0.0.1:44226] FLUSH
10:20:04.630 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeab0b18f, /127.0.0.1:52424 :> /127.0.0.1:44226] INACTIVE
10:20:04.630 [nioEventLoopGroup-39-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-39-1
10:20:04.652 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeab0b18f, /127.0.0.1:52424 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.659 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc347b73c, /127.0.0.1:52432 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.661 [nioEventLoopGroup-36-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:04.662 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc347b73c, /127.0.0.1:52432 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.662 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc347b73c, /127.0.0.1:52432 => /127.0.0.1:44226] FLUSH
10:20:04.663 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc347b73c, /127.0.0.1:52432 => /127.0.0.1:44226] FLUSH
10:20:04.663 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc347b73c, /127.0.0.1:52432 :> /127.0.0.1:44226] INACTIVE
10:20:04.663 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.663 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc347b73c, /127.0.0.1:52432 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.664 [nioEventLoopGroup-40-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-40-1
10:20:04.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.709 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc799d523, /127.0.0.1:52434 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.711 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4227cf8c, /127.0.0.1:48796 :> /127.0.0.1:40163] FLUSH
10:20:04.711 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4227cf8c, /127.0.0.1:48796 :> /127.0.0.1:40163] INACTIVE
10:20:04.711 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4227cf8c, /127.0.0.1:48796 :> /127.0.0.1:40163] UNREGISTERED
10:20:04.711 [nioEventLoopGroup-20-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-16
10:20:04.715 [nioEventLoopGroup-36-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:04.717 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc799d523, /127.0.0.1:52434 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.718 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc799d523, /127.0.0.1:52434 => /127.0.0.1:44226] FLUSH
10:20:04.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.720 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc799d523, /127.0.0.1:52434 => /127.0.0.1:44226] FLUSH
10:20:04.721 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc799d523, /127.0.0.1:52434 :> /127.0.0.1:44226] INACTIVE
10:20:04.721 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc799d523, /127.0.0.1:52434 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.722 [nioEventLoopGroup-41-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-41-1
10:20:04.747 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.752 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1316f9a4, /127.0.0.1:52440 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.753 [nioEventLoopGroup-36-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:04.754 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1316f9a4, /127.0.0.1:52440 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.754 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1316f9a4, /127.0.0.1:52440 => /127.0.0.1:44226] FLUSH
10:20:04.755 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1316f9a4, /127.0.0.1:52440 => /127.0.0.1:44226] FLUSH
10:20:04.754 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.755 [nioEventLoopGroup-42-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-42-1
10:20:04.755 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1316f9a4, /127.0.0.1:52440 :> /127.0.0.1:44226] INACTIVE
10:20:04.755 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1316f9a4, /127.0.0.1:52440 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.757 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.765 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcea2979d, /127.0.0.1:52442 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.767 [nioEventLoopGroup-36-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:04.768 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcea2979d, /127.0.0.1:52442 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.768 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcea2979d, /127.0.0.1:52442 => /127.0.0.1:44226] FLUSH
10:20:04.769 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcea2979d, /127.0.0.1:52442 => /127.0.0.1:44226] FLUSH
10:20:04.769 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcea2979d, /127.0.0.1:52442 :> /127.0.0.1:44226] INACTIVE
10:20:04.769 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcea2979d, /127.0.0.1:52442 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.769 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.770 [nioEventLoopGroup-43-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-43-1
10:20:04.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.810 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d7ffa99, /127.0.0.1:52446 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.819 [nioEventLoopGroup-36-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:04.819 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d7ffa99, /127.0.0.1:52446 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.820 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d7ffa99, /127.0.0.1:52446 => /127.0.0.1:44226] FLUSH
10:20:04.821 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d7ffa99, /127.0.0.1:52446 => /127.0.0.1:44226] FLUSH
10:20:04.820 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.821 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d7ffa99, /127.0.0.1:52446 :> /127.0.0.1:44226] INACTIVE
10:20:04.821 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d7ffa99, /127.0.0.1:52446 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.822 [nioEventLoopGroup-44-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-44-1
10:20:04.836 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.863 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a66c1e, /127.0.0.1:52450 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.868 [nioEventLoopGroup-36-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:04.869 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a66c1e, /127.0.0.1:52450 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.869 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a66c1e, /127.0.0.1:52450 => /127.0.0.1:44226] FLUSH
10:20:04.870 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.870 [nioEventLoopGroup-45-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-45-1
10:20:04.873 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a66c1e, /127.0.0.1:52450 => /127.0.0.1:44226] FLUSH
10:20:04.888 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a66c1e, /127.0.0.1:52450 :> /127.0.0.1:44226] INACTIVE
10:20:04.890 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a66c1e, /127.0.0.1:52450 :> /127.0.0.1:44226] UNREGISTERED
10:20:04.945 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.977 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7335bcd0, /127.0.0.1:52456 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:04.978 [nioEventLoopGroup-36-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:04.979 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7335bcd0, /127.0.0.1:52456 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:04.979 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7335bcd0, /127.0.0.1:52456 => /127.0.0.1:44226] FLUSH
10:20:04.980 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7335bcd0, /127.0.0.1:52456 => /127.0.0.1:44226] FLUSH
10:20:04.980 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:04.981 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7335bcd0, /127.0.0.1:52456 :> /127.0.0.1:44226] INACTIVE
10:20:04.981 [nioEventLoopGroup-46-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-46-1
10:20:04.983 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:04.984 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7335bcd0, /127.0.0.1:52456 :> /127.0.0.1:44226] UNREGISTERED
10:20:05.003 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e79e853, /127.0.0.1:52462 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.005 [nioEventLoopGroup-36-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:05.005 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e79e853, /127.0.0.1:52462 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.006 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e79e853, /127.0.0.1:52462 => /127.0.0.1:44226] FLUSH
10:20:05.047 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e79e853, /127.0.0.1:52462 => /127.0.0.1:44226] FLUSH
10:20:05.046 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.047 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e79e853, /127.0.0.1:52462 :> /127.0.0.1:44226] INACTIVE
10:20:05.048 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e79e853, /127.0.0.1:52462 :> /127.0.0.1:44226] UNREGISTERED
10:20:05.049 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:05.059 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab0be902, /127.0.0.1:52468 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.060 [nioEventLoopGroup-47-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-47-1
10:20:05.069 [nioEventLoopGroup-36-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:05.070 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab0be902, /127.0.0.1:52468 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.071 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab0be902, /127.0.0.1:52468 => /127.0.0.1:44226] FLUSH
10:20:05.072 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.073 [nioEventLoopGroup-48-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-48-1
10:20:05.074 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab0be902, /127.0.0.1:52468 => /127.0.0.1:44226] FLUSH
10:20:05.075 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab0be902, /127.0.0.1:52468 :> /127.0.0.1:44226] INACTIVE
10:20:05.075 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab0be902, /127.0.0.1:52468 :> /127.0.0.1:44226] UNREGISTERED
10:20:05.081 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:05.100 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc429f8f9, /127.0.0.1:52470 => /127.0.0.1:44226] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.104 [nioEventLoopGroup-36-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:05.106 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc429f8f9, /127.0.0.1:52470 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.107 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc429f8f9, /127.0.0.1:52470 => /127.0.0.1:44226] FLUSH
10:20:05.108 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.108 [nioEventLoopGroup-49-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-49-1
10:20:05.109 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc429f8f9, /127.0.0.1:52470 => /127.0.0.1:44226] FLUSH
10:20:05.110 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc429f8f9, /127.0.0.1:52470 :> /127.0.0.1:44226] INACTIVE
10:20:05.110 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc429f8f9, /127.0.0.1:52470 :> /127.0.0.1:44226] UNREGISTERED
10:20:05.164 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92708010, /127.0.0.1:52478 => /127.0.0.1:44226] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:44226
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:05.166 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.168 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.169 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:05.170 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.170 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.171 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.172 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.172 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.173 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.174 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:05.175 [nioEventLoopGroup-36-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:05.176 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92708010, /127.0.0.1:52478 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:05.176 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92708010, /127.0.0.1:52478 => /127.0.0.1:44226] FLUSH
10:20:05.192 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x235b5aa3, /127.0.0.1:52482 => /127.0.0.1:44226] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:44226
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:05.194 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.195 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.199 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:05.202 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.205 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.207 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.213 [nioEventLoopGroup-20-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-14
10:20:05.214 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.215 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.216 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:05.217 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:05.218 [nioEventLoopGroup-36-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44226" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:05.218 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x235b5aa3, /127.0.0.1:52482 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:05.219 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x235b5aa3, /127.0.0.1:52482 => /127.0.0.1:44226] FLUSH
10:20:05.220 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:05.220 [nioEventLoopGroup-20-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-15
10:20:05.227 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc0b6d, /127.0.0.1:52484 => /127.0.0.1:44226] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44226
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:05.228 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc0b6d, /127.0.0.1:52484 => /127.0.0.1:44226] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.228 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc0b6d, /127.0.0.1:52484 => /127.0.0.1:44226] FLUSH
10:20:05.228 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc0b6d, /127.0.0.1:52484 => /127.0.0.1:44226] CLOSE()
10:20:05.230 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.231 [nioEventLoopGroup-50-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-50-1
10:20:05.241 [nioEventLoopGroup-36-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-6
10:20:05.241 [nioEventLoopGroup-36-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-4
10:20:05.241 [nioEventLoopGroup-36-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-3
10:20:05.241 [nioEventLoopGroup-36-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-8
10:20:05.241 [nioEventLoopGroup-36-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-7
10:20:05.241 [nioEventLoopGroup-36-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-2
10:20:05.241 [nioEventLoopGroup-36-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-9
10:20:05.241 [nioEventLoopGroup-36-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-10
10:20:05.241 [nioEventLoopGroup-36-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-12
10:20:05.241 [nioEventLoopGroup-36-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-11
10:20:05.241 [nioEventLoopGroup-36-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-1
10:20:05.241 [nioEventLoopGroup-36-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-5
10:20:05.241 [nioEventLoopGroup-36-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-13
10:20:05.242 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92708010, /127.0.0.1:52478 :> /127.0.0.1:44226] INACTIVE
10:20:05.242 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x235b5aa3, /127.0.0.1:52482 :> /127.0.0.1:44226] INACTIVE
10:20:05.242 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92708010, /127.0.0.1:52478 :> /127.0.0.1:44226] UNREGISTERED
10:20:05.242 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x235b5aa3, /127.0.0.1:52482 :> /127.0.0.1:44226] UNREGISTERED
10:20:05.619 [MockServer thread for port: 37043] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 37043
10:20:05.620 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:05.668 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x206c5bfa, /127.0.0.1:38636 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.670 [nioEventLoopGroup-52-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:05.672 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x206c5bfa, /127.0.0.1:38636 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.672 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x206c5bfa, /127.0.0.1:38636 => /127.0.0.1:37043] FLUSH
10:20:05.673 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.673 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x206c5bfa, /127.0.0.1:38636 => /127.0.0.1:37043] FLUSH
10:20:05.674 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x206c5bfa, /127.0.0.1:38636 :> /127.0.0.1:37043] INACTIVE
10:20:05.674 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x206c5bfa, /127.0.0.1:38636 :> /127.0.0.1:37043] UNREGISTERED
10:20:05.683 [nioEventLoopGroup-53-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-53-1
10:20:05.712 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:05.725 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc1b6649, /127.0.0.1:38642 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.741 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc0b6d, /127.0.0.1:52484 :> /127.0.0.1:44226] FLUSH
10:20:05.741 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc0b6d, /127.0.0.1:52484 :> /127.0.0.1:44226] INACTIVE
10:20:05.741 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28cc0b6d, /127.0.0.1:52484 :> /127.0.0.1:44226] UNREGISTERED
10:20:05.742 [nioEventLoopGroup-36-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-16
10:20:05.745 [nioEventLoopGroup-52-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:05.746 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc1b6649, /127.0.0.1:38642 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.751 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc1b6649, /127.0.0.1:38642 => /127.0.0.1:37043] FLUSH
10:20:05.752 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc1b6649, /127.0.0.1:38642 => /127.0.0.1:37043] FLUSH
10:20:05.752 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc1b6649, /127.0.0.1:38642 :> /127.0.0.1:37043] INACTIVE
10:20:05.752 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc1b6649, /127.0.0.1:38642 :> /127.0.0.1:37043] UNREGISTERED
10:20:05.752 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.756 [nioEventLoopGroup-54-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-54-1
10:20:05.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:05.793 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805276d0, /127.0.0.1:38644 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.795 [nioEventLoopGroup-52-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:05.795 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805276d0, /127.0.0.1:38644 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.795 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805276d0, /127.0.0.1:38644 => /127.0.0.1:37043] FLUSH
10:20:05.796 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805276d0, /127.0.0.1:38644 => /127.0.0.1:37043] FLUSH
10:20:05.797 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805276d0, /127.0.0.1:38644 :> /127.0.0.1:37043] INACTIVE
10:20:05.796 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.797 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x805276d0, /127.0.0.1:38644 :> /127.0.0.1:37043] UNREGISTERED
10:20:05.797 [nioEventLoopGroup-55-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-55-1
10:20:05.802 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:05.852 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5c99ebf, /127.0.0.1:38648 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.856 [nioEventLoopGroup-52-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:05.856 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5c99ebf, /127.0.0.1:38648 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.856 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5c99ebf, /127.0.0.1:38648 => /127.0.0.1:37043] FLUSH
10:20:05.857 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.857 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5c99ebf, /127.0.0.1:38648 => /127.0.0.1:37043] FLUSH
10:20:05.858 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5c99ebf, /127.0.0.1:38648 :> /127.0.0.1:37043] INACTIVE
10:20:05.858 [nioEventLoopGroup-56-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-56-1
10:20:05.858 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5c99ebf, /127.0.0.1:38648 :> /127.0.0.1:37043] UNREGISTERED
10:20:05.889 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:05.900 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08d5f595, /127.0.0.1:38652 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.902 [nioEventLoopGroup-52-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:05.903 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08d5f595, /127.0.0.1:38652 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.903 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08d5f595, /127.0.0.1:38652 => /127.0.0.1:37043] FLUSH
10:20:05.904 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.905 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08d5f595, /127.0.0.1:38652 => /127.0.0.1:37043] FLUSH
10:20:05.905 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08d5f595, /127.0.0.1:38652 :> /127.0.0.1:37043] INACTIVE
10:20:05.905 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08d5f595, /127.0.0.1:38652 :> /127.0.0.1:37043] UNREGISTERED
10:20:05.905 [nioEventLoopGroup-57-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-57-1
10:20:05.938 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:05.964 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda76d62a, /127.0.0.1:38654 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:05.971 [nioEventLoopGroup-52-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:05.973 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda76d62a, /127.0.0.1:38654 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:05.973 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda76d62a, /127.0.0.1:38654 => /127.0.0.1:37043] FLUSH
10:20:05.974 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:05.975 [nioEventLoopGroup-58-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-58-1
10:20:05.975 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda76d62a, /127.0.0.1:38654 => /127.0.0.1:37043] FLUSH
10:20:05.980 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda76d62a, /127.0.0.1:38654 :> /127.0.0.1:37043] INACTIVE
10:20:05.980 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda76d62a, /127.0.0.1:38654 :> /127.0.0.1:37043] UNREGISTERED
10:20:05.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.004 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f921905, /127.0.0.1:38658 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.006 [nioEventLoopGroup-52-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:06.006 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f921905, /127.0.0.1:38658 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.006 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f921905, /127.0.0.1:38658 => /127.0.0.1:37043] FLUSH
10:20:06.007 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f921905, /127.0.0.1:38658 => /127.0.0.1:37043] FLUSH
10:20:06.008 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f921905, /127.0.0.1:38658 :> /127.0.0.1:37043] INACTIVE
10:20:06.008 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f921905, /127.0.0.1:38658 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.008 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.008 [nioEventLoopGroup-59-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-59-1
10:20:06.023 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.037 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3b8896, /127.0.0.1:38662 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.051 [nioEventLoopGroup-52-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:06.051 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3b8896, /127.0.0.1:38662 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.052 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3b8896, /127.0.0.1:38662 => /127.0.0.1:37043] FLUSH
10:20:06.053 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.054 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3b8896, /127.0.0.1:38662 => /127.0.0.1:37043] FLUSH
10:20:06.054 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3b8896, /127.0.0.1:38662 :> /127.0.0.1:37043] INACTIVE
10:20:06.054 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3b8896, /127.0.0.1:38662 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.055 [nioEventLoopGroup-60-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-60-1
10:20:06.082 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.103 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7b9b30f, /127.0.0.1:38668 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.104 [nioEventLoopGroup-52-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:06.105 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7b9b30f, /127.0.0.1:38668 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.105 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7b9b30f, /127.0.0.1:38668 => /127.0.0.1:37043] FLUSH
10:20:06.106 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.106 [nioEventLoopGroup-61-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-61-1
10:20:06.106 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7b9b30f, /127.0.0.1:38668 => /127.0.0.1:37043] FLUSH
10:20:06.107 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7b9b30f, /127.0.0.1:38668 :> /127.0.0.1:37043] INACTIVE
10:20:06.107 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7b9b30f, /127.0.0.1:38668 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.132 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.145 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2be96f0, /127.0.0.1:38672 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.148 [nioEventLoopGroup-52-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:06.149 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2be96f0, /127.0.0.1:38672 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.150 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2be96f0, /127.0.0.1:38672 => /127.0.0.1:37043] FLUSH
10:20:06.151 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.151 [nioEventLoopGroup-62-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-62-1
10:20:06.152 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2be96f0, /127.0.0.1:38672 => /127.0.0.1:37043] FLUSH
10:20:06.152 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2be96f0, /127.0.0.1:38672 :> /127.0.0.1:37043] INACTIVE
10:20:06.152 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2be96f0, /127.0.0.1:38672 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.178 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.183 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x454fc284, /127.0.0.1:38676 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.195 [nioEventLoopGroup-52-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:06.198 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x454fc284, /127.0.0.1:38676 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.198 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x454fc284, /127.0.0.1:38676 => /127.0.0.1:37043] FLUSH
10:20:06.199 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.199 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x454fc284, /127.0.0.1:38676 => /127.0.0.1:37043] FLUSH
10:20:06.199 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x454fc284, /127.0.0.1:38676 :> /127.0.0.1:37043] INACTIVE
10:20:06.199 [nioEventLoopGroup-63-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-63-1
10:20:06.232 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x454fc284, /127.0.0.1:38676 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.248 [nioEventLoopGroup-36-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-14
10:20:06.248 [nioEventLoopGroup-36-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-15
10:20:06.250 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1022bda, /127.0.0.1:38680 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.255 [nioEventLoopGroup-52-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:06.257 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1022bda, /127.0.0.1:38680 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.258 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1022bda, /127.0.0.1:38680 => /127.0.0.1:37043] FLUSH
10:20:06.259 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.260 [nioEventLoopGroup-64-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-64-1
10:20:06.260 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1022bda, /127.0.0.1:38680 => /127.0.0.1:37043] FLUSH
10:20:06.261 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1022bda, /127.0.0.1:38680 :> /127.0.0.1:37043] INACTIVE
10:20:06.261 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1022bda, /127.0.0.1:38680 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.335 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04a1960a, /127.0.0.1:38686 => /127.0.0.1:37043] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.338 [nioEventLoopGroup-52-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:06.338 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04a1960a, /127.0.0.1:38686 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.339 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04a1960a, /127.0.0.1:38686 => /127.0.0.1:37043] FLUSH
10:20:06.339 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04a1960a, /127.0.0.1:38686 => /127.0.0.1:37043] FLUSH
10:20:06.339 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04a1960a, /127.0.0.1:38686 :> /127.0.0.1:37043] INACTIVE
10:20:06.340 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04a1960a, /127.0.0.1:38686 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.339 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.340 [nioEventLoopGroup-65-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-65-1
10:20:06.361 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5999be, /127.0.0.1:38690 => /127.0.0.1:37043] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:37043
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:06.364 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.369 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.373 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:06.377 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.382 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.386 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.391 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.395 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.399 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.403 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.407 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:06.410 [nioEventLoopGroup-52-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:06.413 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5999be, /127.0.0.1:38690 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:06.413 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5999be, /127.0.0.1:38690 => /127.0.0.1:37043] FLUSH
10:20:06.435 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a4baa56, /127.0.0.1:38692 => /127.0.0.1:37043] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:37043
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:06.436 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.437 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.438 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:06.439 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.439 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.443 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.445 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.445 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.446 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.446 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:06.447 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:06.450 [nioEventLoopGroup-52-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37043" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:06.451 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a4baa56, /127.0.0.1:38692 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:06.451 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a4baa56, /127.0.0.1:38692 => /127.0.0.1:37043] FLUSH
10:20:06.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:06.478 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968625, /127.0.0.1:38696 => /127.0.0.1:37043] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:37043
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:06.480 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968625, /127.0.0.1:38696 => /127.0.0.1:37043] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.480 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968625, /127.0.0.1:38696 => /127.0.0.1:37043] FLUSH
10:20:06.480 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.481 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968625, /127.0.0.1:38696 => /127.0.0.1:37043] CLOSE()
10:20:06.527 [nioEventLoopGroup-52-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-1
10:20:06.527 [nioEventLoopGroup-52-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-11
10:20:06.527 [nioEventLoopGroup-52-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-12
10:20:06.528 [nioEventLoopGroup-52-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-2
10:20:06.528 [nioEventLoopGroup-52-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-3
10:20:06.528 [nioEventLoopGroup-52-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-4
10:20:06.528 [nioEventLoopGroup-52-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-5
10:20:06.528 [nioEventLoopGroup-52-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-6
10:20:06.528 [nioEventLoopGroup-52-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-7
10:20:06.528 [nioEventLoopGroup-52-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-8
10:20:06.528 [nioEventLoopGroup-52-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-9
10:20:06.528 [nioEventLoopGroup-52-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-10
10:20:06.528 [nioEventLoopGroup-52-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-13
10:20:06.529 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5999be, /127.0.0.1:38690 :> /127.0.0.1:37043] INACTIVE
10:20:06.529 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a4baa56, /127.0.0.1:38692 :> /127.0.0.1:37043] INACTIVE
10:20:06.531 [nioEventLoopGroup-66-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-66-1
10:20:06.534 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d5999be, /127.0.0.1:38690 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.534 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a4baa56, /127.0.0.1:38692 :> /127.0.0.1:37043] UNREGISTERED
10:20:06.860 [MockServer thread for port: 43217] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43217
10:20:06.861 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.876 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f450e0a, /127.0.0.1:34858 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.882 [nioEventLoopGroup-68-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:06.884 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f450e0a, /127.0.0.1:34858 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.891 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f450e0a, /127.0.0.1:34858 => /127.0.0.1:43217] FLUSH
10:20:06.895 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.895 [nioEventLoopGroup-69-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-69-1
10:20:06.896 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f450e0a, /127.0.0.1:34858 => /127.0.0.1:43217] FLUSH
10:20:06.897 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f450e0a, /127.0.0.1:34858 :> /127.0.0.1:43217] INACTIVE
10:20:06.897 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f450e0a, /127.0.0.1:34858 :> /127.0.0.1:43217] UNREGISTERED
10:20:06.912 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:06.977 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c2a087f, /127.0.0.1:34866 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:06.988 [nioEventLoopGroup-68-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:06.992 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c2a087f, /127.0.0.1:34866 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:06.992 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c2a087f, /127.0.0.1:34866 => /127.0.0.1:43217] FLUSH
10:20:06.993 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:06.994 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c2a087f, /127.0.0.1:34866 => /127.0.0.1:43217] FLUSH
10:20:06.995 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c2a087f, /127.0.0.1:34866 :> /127.0.0.1:43217] INACTIVE
10:20:06.995 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c2a087f, /127.0.0.1:34866 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.001 [nioEventLoopGroup-70-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-70-1
10:20:07.027 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968625, /127.0.0.1:38696 :> /127.0.0.1:37043] FLUSH
10:20:07.027 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968625, /127.0.0.1:38696 :> /127.0.0.1:37043] INACTIVE
10:20:07.027 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c968625, /127.0.0.1:38696 :> /127.0.0.1:37043] UNREGISTERED
10:20:07.028 [nioEventLoopGroup-52-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-16
10:20:07.097 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.130 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b82c9fb, /127.0.0.1:34876 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.145 [nioEventLoopGroup-68-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:07.146 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b82c9fb, /127.0.0.1:34876 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.146 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b82c9fb, /127.0.0.1:34876 => /127.0.0.1:43217] FLUSH
10:20:07.146 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.147 [nioEventLoopGroup-71-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-71-1
10:20:07.149 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b82c9fb, /127.0.0.1:34876 => /127.0.0.1:43217] FLUSH
10:20:07.149 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b82c9fb, /127.0.0.1:34876 :> /127.0.0.1:43217] INACTIVE
10:20:07.149 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b82c9fb, /127.0.0.1:34876 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.169 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.189 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bd08563, /127.0.0.1:34886 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.191 [nioEventLoopGroup-68-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:07.192 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bd08563, /127.0.0.1:34886 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.194 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bd08563, /127.0.0.1:34886 => /127.0.0.1:43217] FLUSH
10:20:07.196 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.196 [nioEventLoopGroup-72-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-72-1
10:20:07.198 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bd08563, /127.0.0.1:34886 => /127.0.0.1:43217] FLUSH
10:20:07.200 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bd08563, /127.0.0.1:34886 :> /127.0.0.1:43217] INACTIVE
10:20:07.201 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bd08563, /127.0.0.1:34886 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.301 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.316 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19659f3, /127.0.0.1:34892 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.335 [nioEventLoopGroup-68-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:07.337 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19659f3, /127.0.0.1:34892 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.338 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19659f3, /127.0.0.1:34892 => /127.0.0.1:43217] FLUSH
10:20:07.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.340 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19659f3, /127.0.0.1:34892 => /127.0.0.1:43217] FLUSH
10:20:07.340 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19659f3, /127.0.0.1:34892 :> /127.0.0.1:43217] INACTIVE
10:20:07.341 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19659f3, /127.0.0.1:34892 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.342 [nioEventLoopGroup-73-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-73-1
10:20:07.472 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.479 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc90056f, /127.0.0.1:34900 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.490 [nioEventLoopGroup-68-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:07.492 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc90056f, /127.0.0.1:34900 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.492 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc90056f, /127.0.0.1:34900 => /127.0.0.1:43217] FLUSH
10:20:07.493 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.494 [nioEventLoopGroup-74-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-74-1
10:20:07.494 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc90056f, /127.0.0.1:34900 => /127.0.0.1:43217] FLUSH
10:20:07.517 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.517 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc90056f, /127.0.0.1:34900 :> /127.0.0.1:43217] INACTIVE
10:20:07.520 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc90056f, /127.0.0.1:34900 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.535 [nioEventLoopGroup-52-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-14
10:20:07.535 [nioEventLoopGroup-52-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-15
10:20:07.542 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0338d3, /127.0.0.1:34904 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.543 [nioEventLoopGroup-68-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:07.544 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0338d3, /127.0.0.1:34904 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.545 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0338d3, /127.0.0.1:34904 => /127.0.0.1:43217] FLUSH
10:20:07.546 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.546 [nioEventLoopGroup-75-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-75-1
10:20:07.547 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0338d3, /127.0.0.1:34904 => /127.0.0.1:43217] FLUSH
10:20:07.547 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0338d3, /127.0.0.1:34904 :> /127.0.0.1:43217] INACTIVE
10:20:07.547 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0338d3, /127.0.0.1:34904 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.600 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.624 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d362102, /127.0.0.1:34912 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.627 [nioEventLoopGroup-68-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:07.628 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d362102, /127.0.0.1:34912 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.629 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d362102, /127.0.0.1:34912 => /127.0.0.1:43217] FLUSH
10:20:07.630 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.631 [nioEventLoopGroup-76-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-76-1
10:20:07.631 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d362102, /127.0.0.1:34912 => /127.0.0.1:43217] FLUSH
10:20:07.631 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d362102, /127.0.0.1:34912 :> /127.0.0.1:43217] INACTIVE
10:20:07.631 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d362102, /127.0.0.1:34912 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.683 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.689 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50102430, /127.0.0.1:34920 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.690 [nioEventLoopGroup-68-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:07.690 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50102430, /127.0.0.1:34920 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.690 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50102430, /127.0.0.1:34920 => /127.0.0.1:43217] FLUSH
10:20:07.691 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.692 [nioEventLoopGroup-77-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-77-1
10:20:07.692 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50102430, /127.0.0.1:34920 => /127.0.0.1:43217] FLUSH
10:20:07.692 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50102430, /127.0.0.1:34920 :> /127.0.0.1:43217] INACTIVE
10:20:07.692 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50102430, /127.0.0.1:34920 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.694 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.700 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cf9f625, /127.0.0.1:34922 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.701 [nioEventLoopGroup-68-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:07.702 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cf9f625, /127.0.0.1:34922 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.702 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cf9f625, /127.0.0.1:34922 => /127.0.0.1:43217] FLUSH
10:20:07.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.703 [nioEventLoopGroup-78-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-78-1
10:20:07.706 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cf9f625, /127.0.0.1:34922 => /127.0.0.1:43217] FLUSH
10:20:07.706 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cf9f625, /127.0.0.1:34922 :> /127.0.0.1:43217] INACTIVE
10:20:07.706 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cf9f625, /127.0.0.1:34922 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.713 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.725 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1fc488b, /127.0.0.1:34924 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.729 [nioEventLoopGroup-68-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:07.731 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1fc488b, /127.0.0.1:34924 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.732 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1fc488b, /127.0.0.1:34924 => /127.0.0.1:43217] FLUSH
10:20:07.733 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1fc488b, /127.0.0.1:34924 => /127.0.0.1:43217] FLUSH
10:20:07.733 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.733 [nioEventLoopGroup-79-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-79-1
10:20:07.734 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1fc488b, /127.0.0.1:34924 :> /127.0.0.1:43217] INACTIVE
10:20:07.735 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1fc488b, /127.0.0.1:34924 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.752 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408551df, /127.0.0.1:34926 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.754 [nioEventLoopGroup-68-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:07.755 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408551df, /127.0.0.1:34926 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.755 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408551df, /127.0.0.1:34926 => /127.0.0.1:43217] FLUSH
10:20:07.756 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.756 [nioEventLoopGroup-80-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-80-1
10:20:07.760 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408551df, /127.0.0.1:34926 => /127.0.0.1:43217] FLUSH
10:20:07.760 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408551df, /127.0.0.1:34926 :> /127.0.0.1:43217] INACTIVE
10:20:07.761 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x408551df, /127.0.0.1:34926 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.828 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:07.849 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4de7cc5, /127.0.0.1:34930 => /127.0.0.1:43217] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:07.856 [nioEventLoopGroup-68-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:07.859 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4de7cc5, /127.0.0.1:34930 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:07.859 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4de7cc5, /127.0.0.1:34930 => /127.0.0.1:43217] FLUSH
10:20:07.860 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:07.860 [nioEventLoopGroup-81-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-81-1
10:20:07.861 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4de7cc5, /127.0.0.1:34930 => /127.0.0.1:43217] FLUSH
10:20:07.862 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4de7cc5, /127.0.0.1:34930 :> /127.0.0.1:43217] INACTIVE
10:20:07.862 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4de7cc5, /127.0.0.1:34930 :> /127.0.0.1:43217] UNREGISTERED
10:20:07.980 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24569ac8, /127.0.0.1:34936 => /127.0.0.1:43217] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43217
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:07.981 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.981 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.982 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:07.982 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.988 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.990 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.991 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.992 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:07.992 [nioEventLoopGroup-68-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:07.993 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24569ac8, /127.0.0.1:34936 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:07.993 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24569ac8, /127.0.0.1:34936 => /127.0.0.1:43217] FLUSH
10:20:07.996 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24569ac8, /127.0.0.1:34936 => /127.0.0.1:43217] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43217
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:07.997 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.998 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.998 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:07.999 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:07.999 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.000 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.000 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.001 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:08.002 [nioEventLoopGroup-68-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43217" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:08.002 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24569ac8, /127.0.0.1:34936 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:08.002 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24569ac8, /127.0.0.1:34936 => /127.0.0.1:43217] FLUSH
10:20:08.003 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:08.006 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x157840d1, /127.0.0.1:34938 => /127.0.0.1:43217] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43217
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:08.007 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x157840d1, /127.0.0.1:34938 => /127.0.0.1:43217] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.007 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x157840d1, /127.0.0.1:34938 => /127.0.0.1:43217] FLUSH
10:20:08.007 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x157840d1, /127.0.0.1:34938 => /127.0.0.1:43217] CLOSE()
10:20:08.008 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.008 [nioEventLoopGroup-82-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-82-1
10:20:08.047 [nioEventLoopGroup-68-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-4
10:20:08.047 [nioEventLoopGroup-68-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-8
10:20:08.047 [nioEventLoopGroup-68-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-3
10:20:08.047 [nioEventLoopGroup-68-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-1
10:20:08.047 [nioEventLoopGroup-68-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-5
10:20:08.047 [nioEventLoopGroup-68-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-2
10:20:08.047 [nioEventLoopGroup-68-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-9
10:20:08.047 [nioEventLoopGroup-68-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-11
10:20:08.047 [nioEventLoopGroup-68-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-6
10:20:08.047 [nioEventLoopGroup-68-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-10
10:20:08.047 [nioEventLoopGroup-68-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-13
10:20:08.047 [nioEventLoopGroup-68-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-7
10:20:08.047 [nioEventLoopGroup-68-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-12
10:20:08.047 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24569ac8, /127.0.0.1:34936 :> /127.0.0.1:43217] INACTIVE
10:20:08.068 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24569ac8, /127.0.0.1:34936 :> /127.0.0.1:43217] UNREGISTERED
10:20:08.427 [MockServer thread for port: 38158] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 38158
10:20:08.427 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.447 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb497081, /127.0.0.1:45856 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.461 [nioEventLoopGroup-84-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:08.462 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb497081, /127.0.0.1:45856 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.465 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb497081, /127.0.0.1:45856 => /127.0.0.1:38158] FLUSH
10:20:08.465 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb497081, /127.0.0.1:45856 => /127.0.0.1:38158] FLUSH
10:20:08.465 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.465 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb497081, /127.0.0.1:45856 :> /127.0.0.1:38158] INACTIVE
10:20:08.466 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb497081, /127.0.0.1:45856 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.475 [nioEventLoopGroup-85-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-85-1
10:20:08.480 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.489 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49608162, /127.0.0.1:45862 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.492 [nioEventLoopGroup-84-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:08.497 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49608162, /127.0.0.1:45862 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.497 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49608162, /127.0.0.1:45862 => /127.0.0.1:38158] FLUSH
10:20:08.499 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.499 [nioEventLoopGroup-86-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-86-1
10:20:08.499 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49608162, /127.0.0.1:45862 => /127.0.0.1:38158] FLUSH
10:20:08.499 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49608162, /127.0.0.1:45862 :> /127.0.0.1:38158] INACTIVE
10:20:08.499 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49608162, /127.0.0.1:45862 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.500 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.503 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4d6040a, /127.0.0.1:45864 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.505 [nioEventLoopGroup-84-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:08.505 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4d6040a, /127.0.0.1:45864 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.505 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4d6040a, /127.0.0.1:45864 => /127.0.0.1:38158] FLUSH
10:20:08.506 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4d6040a, /127.0.0.1:45864 => /127.0.0.1:38158] FLUSH
10:20:08.505 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.506 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4d6040a, /127.0.0.1:45864 :> /127.0.0.1:38158] INACTIVE
10:20:08.506 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb4d6040a, /127.0.0.1:45864 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.506 [nioEventLoopGroup-87-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-87-1
10:20:08.507 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.511 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5392fd60, /127.0.0.1:45866 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.513 [nioEventLoopGroup-84-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:08.513 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5392fd60, /127.0.0.1:45866 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.513 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5392fd60, /127.0.0.1:45866 => /127.0.0.1:38158] FLUSH
10:20:08.514 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.514 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5392fd60, /127.0.0.1:45866 => /127.0.0.1:38158] FLUSH
10:20:08.514 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5392fd60, /127.0.0.1:45866 :> /127.0.0.1:38158] INACTIVE
10:20:08.514 [nioEventLoopGroup-88-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-88-1
10:20:08.514 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5392fd60, /127.0.0.1:45866 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.526 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.534 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9153932, /127.0.0.1:45870 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.540 [nioEventLoopGroup-84-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:08.540 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9153932, /127.0.0.1:45870 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.540 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9153932, /127.0.0.1:45870 => /127.0.0.1:38158] FLUSH
10:20:08.541 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9153932, /127.0.0.1:45870 => /127.0.0.1:38158] FLUSH
10:20:08.541 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.541 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9153932, /127.0.0.1:45870 :> /127.0.0.1:38158] INACTIVE
10:20:08.541 [nioEventLoopGroup-89-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-89-1
10:20:08.547 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9153932, /127.0.0.1:45870 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.549 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.558 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6f477d1, /127.0.0.1:45878 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.560 [nioEventLoopGroup-84-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:08.560 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6f477d1, /127.0.0.1:45878 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.561 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6f477d1, /127.0.0.1:45878 => /127.0.0.1:38158] FLUSH
10:20:08.561 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.561 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6f477d1, /127.0.0.1:45878 => /127.0.0.1:38158] FLUSH
10:20:08.561 [nioEventLoopGroup-90-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-90-1
10:20:08.564 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x157840d1, /127.0.0.1:34938 :> /127.0.0.1:43217] FLUSH
10:20:08.564 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x157840d1, /127.0.0.1:34938 :> /127.0.0.1:43217] INACTIVE
10:20:08.564 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x157840d1, /127.0.0.1:34938 :> /127.0.0.1:43217] UNREGISTERED
10:20:08.564 [nioEventLoopGroup-68-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-15
10:20:08.571 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6f477d1, /127.0.0.1:45878 :> /127.0.0.1:38158] INACTIVE
10:20:08.571 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6f477d1, /127.0.0.1:45878 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.591 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.596 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2967ad3, /127.0.0.1:45882 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.597 [nioEventLoopGroup-84-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:08.597 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2967ad3, /127.0.0.1:45882 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.598 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2967ad3, /127.0.0.1:45882 => /127.0.0.1:38158] FLUSH
10:20:08.598 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2967ad3, /127.0.0.1:45882 => /127.0.0.1:38158] FLUSH
10:20:08.598 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.598 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2967ad3, /127.0.0.1:45882 :> /127.0.0.1:38158] INACTIVE
10:20:08.598 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2967ad3, /127.0.0.1:45882 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.598 [nioEventLoopGroup-91-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-91-1
10:20:08.617 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.625 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb3b6b6, /127.0.0.1:45888 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.626 [nioEventLoopGroup-84-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:08.626 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb3b6b6, /127.0.0.1:45888 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.626 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb3b6b6, /127.0.0.1:45888 => /127.0.0.1:38158] FLUSH
10:20:08.626 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.627 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb3b6b6, /127.0.0.1:45888 => /127.0.0.1:38158] FLUSH
10:20:08.628 [nioEventLoopGroup-92-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-92-1
10:20:08.628 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb3b6b6, /127.0.0.1:45888 :> /127.0.0.1:38158] INACTIVE
10:20:08.634 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfeb3b6b6, /127.0.0.1:45888 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.668 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15c09875, /127.0.0.1:45892 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.669 [nioEventLoopGroup-84-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:08.669 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15c09875, /127.0.0.1:45892 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.669 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15c09875, /127.0.0.1:45892 => /127.0.0.1:38158] FLUSH
10:20:08.670 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.670 [nioEventLoopGroup-93-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-93-1
10:20:08.670 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15c09875, /127.0.0.1:45892 => /127.0.0.1:38158] FLUSH
10:20:08.670 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15c09875, /127.0.0.1:45892 :> /127.0.0.1:38158] INACTIVE
10:20:08.670 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15c09875, /127.0.0.1:45892 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.694 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.708 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacbeb946, /127.0.0.1:45896 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.709 [nioEventLoopGroup-84-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:08.710 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacbeb946, /127.0.0.1:45896 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.710 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacbeb946, /127.0.0.1:45896 => /127.0.0.1:38158] FLUSH
10:20:08.711 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.711 [nioEventLoopGroup-94-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-94-1
10:20:08.712 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacbeb946, /127.0.0.1:45896 => /127.0.0.1:38158] FLUSH
10:20:08.712 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacbeb946, /127.0.0.1:45896 :> /127.0.0.1:38158] INACTIVE
10:20:08.712 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacbeb946, /127.0.0.1:45896 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.748 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.754 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdfdcd827, /127.0.0.1:45902 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.755 [nioEventLoopGroup-84-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:08.756 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdfdcd827, /127.0.0.1:45902 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.756 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdfdcd827, /127.0.0.1:45902 => /127.0.0.1:38158] FLUSH
10:20:08.759 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.759 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdfdcd827, /127.0.0.1:45902 => /127.0.0.1:38158] FLUSH
10:20:08.759 [nioEventLoopGroup-95-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-95-1
10:20:08.759 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdfdcd827, /127.0.0.1:45902 :> /127.0.0.1:38158] INACTIVE
10:20:08.759 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdfdcd827, /127.0.0.1:45902 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.788 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.799 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x437f4fde, /127.0.0.1:45912 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.803 [nioEventLoopGroup-84-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:08.803 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x437f4fde, /127.0.0.1:45912 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.804 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x437f4fde, /127.0.0.1:45912 => /127.0.0.1:38158] FLUSH
10:20:08.805 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x437f4fde, /127.0.0.1:45912 => /127.0.0.1:38158] FLUSH
10:20:08.806 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x437f4fde, /127.0.0.1:45912 :> /127.0.0.1:38158] INACTIVE
10:20:08.806 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x437f4fde, /127.0.0.1:45912 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.807 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.808 [nioEventLoopGroup-96-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-96-1
10:20:08.816 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:08.832 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ee0d192, /127.0.0.1:45918 => /127.0.0.1:38158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:08.834 [nioEventLoopGroup-84-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:08.835 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ee0d192, /127.0.0.1:45918 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.835 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ee0d192, /127.0.0.1:45918 => /127.0.0.1:38158] FLUSH
10:20:08.835 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.836 [nioEventLoopGroup-97-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-97-1
10:20:08.837 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ee0d192, /127.0.0.1:45918 => /127.0.0.1:38158] FLUSH
10:20:08.837 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ee0d192, /127.0.0.1:45918 :> /127.0.0.1:38158] INACTIVE
10:20:08.837 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ee0d192, /127.0.0.1:45918 :> /127.0.0.1:38158] UNREGISTERED
10:20:08.893 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91b4bf35, /127.0.0.1:45928 => /127.0.0.1:38158] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38158
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:08.894 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.894 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.895 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:08.895 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.896 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.896 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.896 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.897 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.897 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:08.898 [nioEventLoopGroup-84-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:08.898 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91b4bf35, /127.0.0.1:45928 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:08.898 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91b4bf35, /127.0.0.1:45928 => /127.0.0.1:38158] FLUSH
10:20:08.901 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91b4bf35, /127.0.0.1:45928 => /127.0.0.1:38158] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38158
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:08.901 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.902 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.903 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:08.903 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.904 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.904 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.905 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.905 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:08.906 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:08.906 [nioEventLoopGroup-84-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:08.907 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91b4bf35, /127.0.0.1:45928 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:08.907 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91b4bf35, /127.0.0.1:45928 => /127.0.0.1:38158] FLUSH
10:20:08.908 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:08.911 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6192664a, /127.0.0.1:45932 => /127.0.0.1:38158] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:38158
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:08.912 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6192664a, /127.0.0.1:45932 => /127.0.0.1:38158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:08.913 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6192664a, /127.0.0.1:45932 => /127.0.0.1:38158] FLUSH
10:20:08.914 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:08.915 [nioEventLoopGroup-98-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-98-1
10:20:08.915 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6192664a, /127.0.0.1:45932 => /127.0.0.1:38158] CLOSE()
10:20:08.976 [nioEventLoopGroup-84-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-1
10:20:08.976 [nioEventLoopGroup-84-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-2
10:20:08.976 [nioEventLoopGroup-84-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-3
10:20:08.976 [nioEventLoopGroup-84-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-4
10:20:08.976 [nioEventLoopGroup-84-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-5
10:20:08.976 [nioEventLoopGroup-84-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-6
10:20:08.976 [nioEventLoopGroup-84-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-7
10:20:08.977 [nioEventLoopGroup-84-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-8
10:20:08.977 [nioEventLoopGroup-84-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-9
10:20:08.977 [nioEventLoopGroup-84-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-10
10:20:08.977 [nioEventLoopGroup-84-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-11
10:20:08.977 [nioEventLoopGroup-84-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-12
10:20:08.977 [nioEventLoopGroup-84-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-13
10:20:08.977 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91b4bf35, /127.0.0.1:45928 :> /127.0.0.1:38158] INACTIVE
10:20:08.977 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91b4bf35, /127.0.0.1:45928 :> /127.0.0.1:38158] UNREGISTERED
10:20:09.070 [nioEventLoopGroup-68-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-14
10:20:09.306 [MockServer thread for port: 38710] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 38710
10:20:09.306 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.313 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3b650e0, /127.0.0.1:42386 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.315 [nioEventLoopGroup-100-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:09.315 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3b650e0, /127.0.0.1:42386 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.316 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3b650e0, /127.0.0.1:42386 => /127.0.0.1:38710] FLUSH
10:20:09.316 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.317 [nioEventLoopGroup-101-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-101-1
10:20:09.317 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3b650e0, /127.0.0.1:42386 => /127.0.0.1:38710] FLUSH
10:20:09.317 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3b650e0, /127.0.0.1:42386 :> /127.0.0.1:38710] INACTIVE
10:20:09.317 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3b650e0, /127.0.0.1:42386 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.328 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.332 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ecaa1f3, /127.0.0.1:42392 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.335 [nioEventLoopGroup-100-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:09.337 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ecaa1f3, /127.0.0.1:42392 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.337 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ecaa1f3, /127.0.0.1:42392 => /127.0.0.1:38710] FLUSH
10:20:09.338 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.339 [nioEventLoopGroup-102-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-102-1
10:20:09.339 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ecaa1f3, /127.0.0.1:42392 => /127.0.0.1:38710] FLUSH
10:20:09.339 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ecaa1f3, /127.0.0.1:42392 :> /127.0.0.1:38710] INACTIVE
10:20:09.340 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ecaa1f3, /127.0.0.1:42392 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.367 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.375 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592b187, /127.0.0.1:42398 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.378 [nioEventLoopGroup-100-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:09.378 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592b187, /127.0.0.1:42398 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.378 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592b187, /127.0.0.1:42398 => /127.0.0.1:38710] FLUSH
10:20:09.379 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592b187, /127.0.0.1:42398 => /127.0.0.1:38710] FLUSH
10:20:09.379 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.379 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592b187, /127.0.0.1:42398 :> /127.0.0.1:38710] INACTIVE
10:20:09.379 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7592b187, /127.0.0.1:42398 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.380 [nioEventLoopGroup-103-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-103-1
10:20:09.382 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.402 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4468ce72, /127.0.0.1:42402 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.403 [nioEventLoopGroup-100-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:09.403 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4468ce72, /127.0.0.1:42402 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.403 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4468ce72, /127.0.0.1:42402 => /127.0.0.1:38710] FLUSH
10:20:09.404 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.404 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4468ce72, /127.0.0.1:42402 => /127.0.0.1:38710] FLUSH
10:20:09.404 [nioEventLoopGroup-104-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-104-1
10:20:09.404 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4468ce72, /127.0.0.1:42402 :> /127.0.0.1:38710] INACTIVE
10:20:09.404 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4468ce72, /127.0.0.1:42402 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.410 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.420 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9efd24d4, /127.0.0.1:42406 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.421 [nioEventLoopGroup-100-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:09.421 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9efd24d4, /127.0.0.1:42406 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.422 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9efd24d4, /127.0.0.1:42406 => /127.0.0.1:38710] FLUSH
10:20:09.422 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9efd24d4, /127.0.0.1:42406 => /127.0.0.1:38710] FLUSH
10:20:09.422 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.422 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9efd24d4, /127.0.0.1:42406 :> /127.0.0.1:38710] INACTIVE
10:20:09.423 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9efd24d4, /127.0.0.1:42406 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.423 [nioEventLoopGroup-105-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-105-1
10:20:09.430 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.434 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8751f765, /127.0.0.1:42410 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.435 [nioEventLoopGroup-100-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:09.436 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8751f765, /127.0.0.1:42410 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.436 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8751f765, /127.0.0.1:42410 => /127.0.0.1:38710] FLUSH
10:20:09.437 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8751f765, /127.0.0.1:42410 => /127.0.0.1:38710] FLUSH
10:20:09.437 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8751f765, /127.0.0.1:42410 :> /127.0.0.1:38710] INACTIVE
10:20:09.437 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8751f765, /127.0.0.1:42410 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.437 [nioEventLoopGroup-106-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-106-1
10:20:09.467 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.477 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42847c8, /127.0.0.1:42420 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.478 [nioEventLoopGroup-100-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:09.478 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42847c8, /127.0.0.1:42420 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.478 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42847c8, /127.0.0.1:42420 => /127.0.0.1:38710] FLUSH
10:20:09.479 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.479 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42847c8, /127.0.0.1:42420 => /127.0.0.1:38710] FLUSH
10:20:09.479 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6192664a, /127.0.0.1:45932 :> /127.0.0.1:38158] FLUSH
10:20:09.479 [nioEventLoopGroup-107-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-107-1
10:20:09.480 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6192664a, /127.0.0.1:45932 :> /127.0.0.1:38158] INACTIVE
10:20:09.480 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42847c8, /127.0.0.1:42420 :> /127.0.0.1:38710] INACTIVE
10:20:09.480 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42847c8, /127.0.0.1:42420 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.480 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6192664a, /127.0.0.1:45932 :> /127.0.0.1:38158] UNREGISTERED
10:20:09.480 [nioEventLoopGroup-84-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-15
10:20:09.482 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.487 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5401046, /127.0.0.1:42422 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.488 [nioEventLoopGroup-100-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:09.488 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5401046, /127.0.0.1:42422 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.489 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5401046, /127.0.0.1:42422 => /127.0.0.1:38710] FLUSH
10:20:09.489 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.489 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5401046, /127.0.0.1:42422 => /127.0.0.1:38710] FLUSH
10:20:09.490 [nioEventLoopGroup-108-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-108-1
10:20:09.490 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5401046, /127.0.0.1:42422 :> /127.0.0.1:38710] INACTIVE
10:20:09.491 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5401046, /127.0.0.1:42422 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.519 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.526 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x626d3b98, /127.0.0.1:42430 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.527 [nioEventLoopGroup-100-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:09.527 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x626d3b98, /127.0.0.1:42430 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.527 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x626d3b98, /127.0.0.1:42430 => /127.0.0.1:38710] FLUSH
10:20:09.528 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x626d3b98, /127.0.0.1:42430 => /127.0.0.1:38710] FLUSH
10:20:09.528 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x626d3b98, /127.0.0.1:42430 :> /127.0.0.1:38710] INACTIVE
10:20:09.528 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x626d3b98, /127.0.0.1:42430 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.529 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.531 [nioEventLoopGroup-109-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-109-1
10:20:09.574 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.578 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55bb3bac, /127.0.0.1:42444 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.580 [nioEventLoopGroup-100-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:09.580 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55bb3bac, /127.0.0.1:42444 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.580 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55bb3bac, /127.0.0.1:42444 => /127.0.0.1:38710] FLUSH
10:20:09.581 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.581 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55bb3bac, /127.0.0.1:42444 => /127.0.0.1:38710] FLUSH
10:20:09.581 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55bb3bac, /127.0.0.1:42444 :> /127.0.0.1:38710] INACTIVE
10:20:09.581 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55bb3bac, /127.0.0.1:42444 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.582 [nioEventLoopGroup-110-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-110-1
10:20:09.585 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.593 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62258e8d, /127.0.0.1:42452 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.593 [nioEventLoopGroup-100-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:09.594 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62258e8d, /127.0.0.1:42452 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.594 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62258e8d, /127.0.0.1:42452 => /127.0.0.1:38710] FLUSH
10:20:09.594 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.595 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62258e8d, /127.0.0.1:42452 => /127.0.0.1:38710] FLUSH
10:20:09.595 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62258e8d, /127.0.0.1:42452 :> /127.0.0.1:38710] INACTIVE
10:20:09.595 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62258e8d, /127.0.0.1:42452 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.595 [nioEventLoopGroup-111-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-111-1
10:20:09.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.599 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51338ce, /127.0.0.1:42454 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.601 [nioEventLoopGroup-100-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:09.601 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51338ce, /127.0.0.1:42454 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.601 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51338ce, /127.0.0.1:42454 => /127.0.0.1:38710] FLUSH
10:20:09.601 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.602 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51338ce, /127.0.0.1:42454 => /127.0.0.1:38710] FLUSH
10:20:09.602 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51338ce, /127.0.0.1:42454 :> /127.0.0.1:38710] INACTIVE
10:20:09.602 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51338ce, /127.0.0.1:42454 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.602 [nioEventLoopGroup-112-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-112-1
10:20:09.610 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:09.613 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06c04f2b, /127.0.0.1:42458 => /127.0.0.1:38710] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:09.615 [nioEventLoopGroup-100-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:09.615 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06c04f2b, /127.0.0.1:42458 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.615 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06c04f2b, /127.0.0.1:42458 => /127.0.0.1:38710] FLUSH
10:20:09.616 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.617 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06c04f2b, /127.0.0.1:42458 => /127.0.0.1:38710] FLUSH
10:20:09.617 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06c04f2b, /127.0.0.1:42458 :> /127.0.0.1:38710] INACTIVE
10:20:09.617 [nioEventLoopGroup-113-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-113-1
10:20:09.619 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06c04f2b, /127.0.0.1:42458 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.626 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d43a545, /127.0.0.1:42460 => /127.0.0.1:38710] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38710
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:09.627 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.630 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.630 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:09.631 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.631 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.632 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.635 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.639 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.641 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.642 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:09.643 [nioEventLoopGroup-100-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:09.646 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d43a545, /127.0.0.1:42460 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:09.646 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d43a545, /127.0.0.1:42460 => /127.0.0.1:38710] FLUSH
10:20:09.649 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d43a545, /127.0.0.1:42460 => /127.0.0.1:38710] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38710
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:09.650 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.651 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.651 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:09.652 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.652 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.653 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.653 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.654 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.655 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:09.655 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:09.656 [nioEventLoopGroup-100-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38710" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:09.657 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d43a545, /127.0.0.1:42460 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:09.657 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d43a545, /127.0.0.1:42460 => /127.0.0.1:38710] FLUSH
10:20:09.658 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:09.668 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd872ad95, /127.0.0.1:42466 => /127.0.0.1:38710] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:38710
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:09.668 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd872ad95, /127.0.0.1:42466 => /127.0.0.1:38710] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:09.668 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd872ad95, /127.0.0.1:42466 => /127.0.0.1:38710] FLUSH
10:20:09.668 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd872ad95, /127.0.0.1:42466 => /127.0.0.1:38710] CLOSE()
10:20:09.669 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:09.669 [nioEventLoopGroup-114-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-114-1
10:20:09.700 [nioEventLoopGroup-100-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-1
10:20:09.700 [nioEventLoopGroup-100-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-2
10:20:09.700 [nioEventLoopGroup-100-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-3
10:20:09.700 [nioEventLoopGroup-100-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-4
10:20:09.701 [nioEventLoopGroup-100-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-5
10:20:09.701 [nioEventLoopGroup-100-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-6
10:20:09.701 [nioEventLoopGroup-100-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-7
10:20:09.701 [nioEventLoopGroup-100-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-8
10:20:09.701 [nioEventLoopGroup-100-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-9
10:20:09.701 [nioEventLoopGroup-100-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-10
10:20:09.701 [nioEventLoopGroup-100-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-11
10:20:09.701 [nioEventLoopGroup-100-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-12
10:20:09.701 [nioEventLoopGroup-100-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-13
10:20:09.702 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d43a545, /127.0.0.1:42460 :> /127.0.0.1:38710] INACTIVE
10:20:09.702 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d43a545, /127.0.0.1:42460 :> /127.0.0.1:38710] UNREGISTERED
10:20:09.979 [nioEventLoopGroup-84-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-14
10:20:10.041 [MockServer thread for port: 41581] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41581
10:20:10.042 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.046 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7431117e, /127.0.0.1:35822 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.047 [nioEventLoopGroup-116-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:10.047 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7431117e, /127.0.0.1:35822 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.047 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7431117e, /127.0.0.1:35822 => /127.0.0.1:41581] FLUSH
10:20:10.050 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.051 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7431117e, /127.0.0.1:35822 => /127.0.0.1:41581] FLUSH
10:20:10.051 [nioEventLoopGroup-117-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-117-1
10:20:10.051 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7431117e, /127.0.0.1:35822 :> /127.0.0.1:41581] INACTIVE
10:20:10.051 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7431117e, /127.0.0.1:35822 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.056 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.064 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db3fda8, /127.0.0.1:35824 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.066 [nioEventLoopGroup-116-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:10.067 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db3fda8, /127.0.0.1:35824 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.067 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db3fda8, /127.0.0.1:35824 => /127.0.0.1:41581] FLUSH
10:20:10.068 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.069 [nioEventLoopGroup-118-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-118-1
10:20:10.070 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db3fda8, /127.0.0.1:35824 => /127.0.0.1:41581] FLUSH
10:20:10.070 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db3fda8, /127.0.0.1:35824 :> /127.0.0.1:41581] INACTIVE
10:20:10.070 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db3fda8, /127.0.0.1:35824 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.072 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.079 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3f140fa, /127.0.0.1:35834 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.081 [nioEventLoopGroup-116-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:10.081 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3f140fa, /127.0.0.1:35834 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.081 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3f140fa, /127.0.0.1:35834 => /127.0.0.1:41581] FLUSH
10:20:10.082 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.082 [nioEventLoopGroup-119-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-119-1
10:20:10.082 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3f140fa, /127.0.0.1:35834 => /127.0.0.1:41581] FLUSH
10:20:10.083 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3f140fa, /127.0.0.1:35834 :> /127.0.0.1:41581] INACTIVE
10:20:10.083 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3f140fa, /127.0.0.1:35834 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.084 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.088 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a78dd5e, /127.0.0.1:35836 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.089 [nioEventLoopGroup-116-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:10.089 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a78dd5e, /127.0.0.1:35836 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.089 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a78dd5e, /127.0.0.1:35836 => /127.0.0.1:41581] FLUSH
10:20:10.090 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.090 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a78dd5e, /127.0.0.1:35836 => /127.0.0.1:41581] FLUSH
10:20:10.090 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a78dd5e, /127.0.0.1:35836 :> /127.0.0.1:41581] INACTIVE
10:20:10.090 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a78dd5e, /127.0.0.1:35836 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.090 [nioEventLoopGroup-120-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-120-1
10:20:10.097 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.112 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0935279c, /127.0.0.1:35842 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.114 [nioEventLoopGroup-116-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:10.114 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0935279c, /127.0.0.1:35842 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.114 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0935279c, /127.0.0.1:35842 => /127.0.0.1:41581] FLUSH
10:20:10.115 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.116 [nioEventLoopGroup-121-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-121-1
10:20:10.117 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0935279c, /127.0.0.1:35842 => /127.0.0.1:41581] FLUSH
10:20:10.118 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0935279c, /127.0.0.1:35842 :> /127.0.0.1:41581] INACTIVE
10:20:10.118 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0935279c, /127.0.0.1:35842 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.124 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.132 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3156a969, /127.0.0.1:35846 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.136 [nioEventLoopGroup-116-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:10.136 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3156a969, /127.0.0.1:35846 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.137 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3156a969, /127.0.0.1:35846 => /127.0.0.1:41581] FLUSH
10:20:10.137 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.138 [nioEventLoopGroup-122-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-122-1
10:20:10.138 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3156a969, /127.0.0.1:35846 => /127.0.0.1:41581] FLUSH
10:20:10.147 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3156a969, /127.0.0.1:35846 :> /127.0.0.1:41581] INACTIVE
10:20:10.148 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3156a969, /127.0.0.1:35846 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.149 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.156 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e46bab, /127.0.0.1:35852 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.158 [nioEventLoopGroup-116-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:10.158 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e46bab, /127.0.0.1:35852 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.158 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e46bab, /127.0.0.1:35852 => /127.0.0.1:41581] FLUSH
10:20:10.158 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.159 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e46bab, /127.0.0.1:35852 => /127.0.0.1:41581] FLUSH
10:20:10.159 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e46bab, /127.0.0.1:35852 :> /127.0.0.1:41581] INACTIVE
10:20:10.159 [nioEventLoopGroup-123-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-123-1
10:20:10.159 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e46bab, /127.0.0.1:35852 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.167 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.178 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x742ce6c9, /127.0.0.1:35858 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.179 [nioEventLoopGroup-116-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:10.179 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x742ce6c9, /127.0.0.1:35858 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.180 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x742ce6c9, /127.0.0.1:35858 => /127.0.0.1:41581] FLUSH
10:20:10.180 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x742ce6c9, /127.0.0.1:35858 => /127.0.0.1:41581] FLUSH
10:20:10.180 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x742ce6c9, /127.0.0.1:35858 :> /127.0.0.1:41581] INACTIVE
10:20:10.180 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x742ce6c9, /127.0.0.1:35858 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.180 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.181 [nioEventLoopGroup-124-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-124-1
10:20:10.184 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.187 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e380d4e, /127.0.0.1:35864 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.188 [nioEventLoopGroup-116-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:10.189 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e380d4e, /127.0.0.1:35864 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.189 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e380d4e, /127.0.0.1:35864 => /127.0.0.1:41581] FLUSH
10:20:10.189 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.189 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e380d4e, /127.0.0.1:35864 => /127.0.0.1:41581] FLUSH
10:20:10.189 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e380d4e, /127.0.0.1:35864 :> /127.0.0.1:41581] INACTIVE
10:20:10.189 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e380d4e, /127.0.0.1:35864 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.189 [nioEventLoopGroup-125-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-125-1
10:20:10.202 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd872ad95, /127.0.0.1:42466 :> /127.0.0.1:38710] FLUSH
10:20:10.202 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd872ad95, /127.0.0.1:42466 :> /127.0.0.1:38710] INACTIVE
10:20:10.202 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd872ad95, /127.0.0.1:42466 :> /127.0.0.1:38710] UNREGISTERED
10:20:10.203 [nioEventLoopGroup-100-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-15
10:20:10.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.213 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa13a524, /127.0.0.1:35872 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.215 [nioEventLoopGroup-116-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:10.215 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa13a524, /127.0.0.1:35872 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.215 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa13a524, /127.0.0.1:35872 => /127.0.0.1:41581] FLUSH
10:20:10.216 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.216 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa13a524, /127.0.0.1:35872 => /127.0.0.1:41581] FLUSH
10:20:10.216 [nioEventLoopGroup-126-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-126-1
10:20:10.216 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa13a524, /127.0.0.1:35872 :> /127.0.0.1:41581] INACTIVE
10:20:10.216 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa13a524, /127.0.0.1:35872 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.230 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.233 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x261c7e2d, /127.0.0.1:35880 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.234 [nioEventLoopGroup-116-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:10.235 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x261c7e2d, /127.0.0.1:35880 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.235 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x261c7e2d, /127.0.0.1:35880 => /127.0.0.1:41581] FLUSH
10:20:10.235 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x261c7e2d, /127.0.0.1:35880 => /127.0.0.1:41581] FLUSH
10:20:10.235 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x261c7e2d, /127.0.0.1:35880 :> /127.0.0.1:41581] INACTIVE
10:20:10.235 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.235 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x261c7e2d, /127.0.0.1:35880 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.235 [nioEventLoopGroup-127-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-127-1
10:20:10.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.244 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2903990d, /127.0.0.1:35884 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.246 [nioEventLoopGroup-116-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:10.246 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2903990d, /127.0.0.1:35884 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.246 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2903990d, /127.0.0.1:35884 => /127.0.0.1:41581] FLUSH
10:20:10.246 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.246 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2903990d, /127.0.0.1:35884 => /127.0.0.1:41581] FLUSH
10:20:10.247 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2903990d, /127.0.0.1:35884 :> /127.0.0.1:41581] INACTIVE
10:20:10.247 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2903990d, /127.0.0.1:35884 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.247 [nioEventLoopGroup-128-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-128-1
10:20:10.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.265 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bab0f58, /127.0.0.1:35890 => /127.0.0.1:41581] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.266 [nioEventLoopGroup-116-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:10.267 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bab0f58, /127.0.0.1:35890 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.267 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bab0f58, /127.0.0.1:35890 => /127.0.0.1:41581] FLUSH
10:20:10.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.268 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bab0f58, /127.0.0.1:35890 => /127.0.0.1:41581] FLUSH
10:20:10.268 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bab0f58, /127.0.0.1:35890 :> /127.0.0.1:41581] INACTIVE
10:20:10.268 [nioEventLoopGroup-129-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-129-1
10:20:10.268 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bab0f58, /127.0.0.1:35890 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.270 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb6f1688, /127.0.0.1:35894 => /127.0.0.1:41581] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41581
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:10.271 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.273 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.274 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:10.274 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.274 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.275 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.277 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.278 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.278 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.279 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:10.279 [nioEventLoopGroup-116-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:10.279 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb6f1688, /127.0.0.1:35894 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:10.280 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb6f1688, /127.0.0.1:35894 => /127.0.0.1:41581] FLUSH
10:20:10.284 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb6f1688, /127.0.0.1:35894 => /127.0.0.1:41581] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41581
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:10.284 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.285 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.285 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:10.285 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.286 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.286 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.286 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.287 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.287 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.288 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.288 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:10.288 [nioEventLoopGroup-116-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41581" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:10.289 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb6f1688, /127.0.0.1:35894 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:10.289 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb6f1688, /127.0.0.1:35894 => /127.0.0.1:41581] FLUSH
10:20:10.290 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:10.294 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb931d967, /127.0.0.1:35902 => /127.0.0.1:41581] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41581
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:10.294 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb931d967, /127.0.0.1:35902 => /127.0.0.1:41581] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.294 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb931d967, /127.0.0.1:35902 => /127.0.0.1:41581] FLUSH
10:20:10.295 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb931d967, /127.0.0.1:35902 => /127.0.0.1:41581] CLOSE()
10:20:10.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.297 [nioEventLoopGroup-130-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-130-1
10:20:10.302 [nioEventLoopGroup-116-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-1
10:20:10.302 [nioEventLoopGroup-116-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-5
10:20:10.302 [nioEventLoopGroup-116-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-10
10:20:10.302 [nioEventLoopGroup-116-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-4
10:20:10.302 [nioEventLoopGroup-116-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-3
10:20:10.302 [nioEventLoopGroup-116-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-2
10:20:10.302 [nioEventLoopGroup-116-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-6
10:20:10.302 [nioEventLoopGroup-116-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-11
10:20:10.302 [nioEventLoopGroup-116-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-9
10:20:10.302 [nioEventLoopGroup-116-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-12
10:20:10.302 [nioEventLoopGroup-116-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-7
10:20:10.302 [nioEventLoopGroup-116-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-13
10:20:10.302 [nioEventLoopGroup-116-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-8
10:20:10.302 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb6f1688, /127.0.0.1:35894 :> /127.0.0.1:41581] INACTIVE
10:20:10.308 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb6f1688, /127.0.0.1:35894 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.654 [MockServer thread for port: 44230] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44230
10:20:10.655 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.661 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bb0f0a, /127.0.0.1:49590 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.662 [nioEventLoopGroup-132-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:10.663 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bb0f0a, /127.0.0.1:49590 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.663 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bb0f0a, /127.0.0.1:49590 => /127.0.0.1:44230] FLUSH
10:20:10.667 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.668 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bb0f0a, /127.0.0.1:49590 => /127.0.0.1:44230] FLUSH
10:20:10.668 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bb0f0a, /127.0.0.1:49590 :> /127.0.0.1:44230] INACTIVE
10:20:10.668 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bb0f0a, /127.0.0.1:49590 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.671 [nioEventLoopGroup-133-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-133-1
10:20:10.680 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.690 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29d0b59e, /127.0.0.1:49600 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.692 [nioEventLoopGroup-132-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:10.692 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29d0b59e, /127.0.0.1:49600 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.692 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29d0b59e, /127.0.0.1:49600 => /127.0.0.1:44230] FLUSH
10:20:10.693 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29d0b59e, /127.0.0.1:49600 => /127.0.0.1:44230] FLUSH
10:20:10.693 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.693 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29d0b59e, /127.0.0.1:49600 :> /127.0.0.1:44230] INACTIVE
10:20:10.693 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29d0b59e, /127.0.0.1:49600 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.694 [nioEventLoopGroup-134-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-134-1
10:20:10.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.703 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1187a990, /127.0.0.1:49606 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.703 [nioEventLoopGroup-100-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-14
10:20:10.705 [nioEventLoopGroup-132-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:10.705 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1187a990, /127.0.0.1:49606 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.705 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1187a990, /127.0.0.1:49606 => /127.0.0.1:44230] FLUSH
10:20:10.705 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.706 [nioEventLoopGroup-135-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-135-1
10:20:10.706 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1187a990, /127.0.0.1:49606 => /127.0.0.1:44230] FLUSH
10:20:10.706 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1187a990, /127.0.0.1:49606 :> /127.0.0.1:44230] INACTIVE
10:20:10.706 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1187a990, /127.0.0.1:49606 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.708 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.711 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12330a31, /127.0.0.1:49608 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.713 [nioEventLoopGroup-132-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:10.713 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12330a31, /127.0.0.1:49608 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.713 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12330a31, /127.0.0.1:49608 => /127.0.0.1:44230] FLUSH
10:20:10.714 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.715 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12330a31, /127.0.0.1:49608 => /127.0.0.1:44230] FLUSH
10:20:10.715 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12330a31, /127.0.0.1:49608 :> /127.0.0.1:44230] INACTIVE
10:20:10.715 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12330a31, /127.0.0.1:49608 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.715 [nioEventLoopGroup-136-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-136-1
10:20:10.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.720 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x987f02eb, /127.0.0.1:49614 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.721 [nioEventLoopGroup-132-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:10.722 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x987f02eb, /127.0.0.1:49614 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.722 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x987f02eb, /127.0.0.1:49614 => /127.0.0.1:44230] FLUSH
10:20:10.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.722 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x987f02eb, /127.0.0.1:49614 => /127.0.0.1:44230] FLUSH
10:20:10.722 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x987f02eb, /127.0.0.1:49614 :> /127.0.0.1:44230] INACTIVE
10:20:10.722 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x987f02eb, /127.0.0.1:49614 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.722 [nioEventLoopGroup-137-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-137-1
10:20:10.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.733 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52022eea, /127.0.0.1:49616 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.734 [nioEventLoopGroup-132-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:10.734 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52022eea, /127.0.0.1:49616 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.734 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52022eea, /127.0.0.1:49616 => /127.0.0.1:44230] FLUSH
10:20:10.735 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.736 [nioEventLoopGroup-138-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-138-1
10:20:10.743 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52022eea, /127.0.0.1:49616 => /127.0.0.1:44230] FLUSH
10:20:10.745 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52022eea, /127.0.0.1:49616 :> /127.0.0.1:44230] INACTIVE
10:20:10.745 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52022eea, /127.0.0.1:49616 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.750 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.754 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc702990, /127.0.0.1:49618 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.755 [nioEventLoopGroup-132-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:10.755 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc702990, /127.0.0.1:49618 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.755 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc702990, /127.0.0.1:49618 => /127.0.0.1:44230] FLUSH
10:20:10.756 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.756 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc702990, /127.0.0.1:49618 => /127.0.0.1:44230] FLUSH
10:20:10.756 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc702990, /127.0.0.1:49618 :> /127.0.0.1:44230] INACTIVE
10:20:10.756 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc702990, /127.0.0.1:49618 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.756 [nioEventLoopGroup-139-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-139-1
10:20:10.758 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.768 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b872db1, /127.0.0.1:49624 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.769 [nioEventLoopGroup-132-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:10.769 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b872db1, /127.0.0.1:49624 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.769 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b872db1, /127.0.0.1:49624 => /127.0.0.1:44230] FLUSH
10:20:10.769 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.770 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b872db1, /127.0.0.1:49624 => /127.0.0.1:44230] FLUSH
10:20:10.770 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b872db1, /127.0.0.1:49624 :> /127.0.0.1:44230] INACTIVE
10:20:10.770 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b872db1, /127.0.0.1:49624 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.770 [nioEventLoopGroup-140-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-140-1
10:20:10.772 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.777 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x112ac8e2, /127.0.0.1:49628 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.778 [nioEventLoopGroup-132-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:10.778 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x112ac8e2, /127.0.0.1:49628 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.778 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x112ac8e2, /127.0.0.1:49628 => /127.0.0.1:44230] FLUSH
10:20:10.779 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.779 [nioEventLoopGroup-141-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-141-1
10:20:10.779 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x112ac8e2, /127.0.0.1:49628 => /127.0.0.1:44230] FLUSH
10:20:10.780 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x112ac8e2, /127.0.0.1:49628 :> /127.0.0.1:44230] INACTIVE
10:20:10.780 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x112ac8e2, /127.0.0.1:49628 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.781 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.786 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48a49d6d, /127.0.0.1:49634 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.787 [nioEventLoopGroup-132-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:10.788 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48a49d6d, /127.0.0.1:49634 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.788 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48a49d6d, /127.0.0.1:49634 => /127.0.0.1:44230] FLUSH
10:20:10.795 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.795 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48a49d6d, /127.0.0.1:49634 => /127.0.0.1:44230] FLUSH
10:20:10.796 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48a49d6d, /127.0.0.1:49634 :> /127.0.0.1:44230] INACTIVE
10:20:10.796 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48a49d6d, /127.0.0.1:49634 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.796 [nioEventLoopGroup-142-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-142-1
10:20:10.804 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.807 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb931d967, /127.0.0.1:35902 :> /127.0.0.1:41581] FLUSH
10:20:10.808 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb931d967, /127.0.0.1:35902 :> /127.0.0.1:41581] INACTIVE
10:20:10.808 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb931d967, /127.0.0.1:35902 :> /127.0.0.1:41581] UNREGISTERED
10:20:10.811 [nioEventLoopGroup-116-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-15
10:20:10.814 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57f344a1, /127.0.0.1:49642 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.815 [nioEventLoopGroup-132-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:10.815 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57f344a1, /127.0.0.1:49642 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.815 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57f344a1, /127.0.0.1:49642 => /127.0.0.1:44230] FLUSH
10:20:10.816 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.816 [nioEventLoopGroup-143-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-143-1
10:20:10.818 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.818 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57f344a1, /127.0.0.1:49642 => /127.0.0.1:44230] FLUSH
10:20:10.819 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57f344a1, /127.0.0.1:49642 :> /127.0.0.1:44230] INACTIVE
10:20:10.819 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x57f344a1, /127.0.0.1:49642 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.821 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04086c95, /127.0.0.1:49644 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.823 [nioEventLoopGroup-132-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:10.823 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04086c95, /127.0.0.1:49644 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.823 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04086c95, /127.0.0.1:49644 => /127.0.0.1:44230] FLUSH
10:20:10.824 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.825 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04086c95, /127.0.0.1:49644 => /127.0.0.1:44230] FLUSH
10:20:10.825 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04086c95, /127.0.0.1:49644 :> /127.0.0.1:44230] INACTIVE
10:20:10.825 [nioEventLoopGroup-144-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-144-1
10:20:10.831 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x04086c95, /127.0.0.1:49644 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.834 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:10.838 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde5897a0, /127.0.0.1:49650 => /127.0.0.1:44230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:10.839 [nioEventLoopGroup-132-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:10.839 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde5897a0, /127.0.0.1:49650 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.839 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde5897a0, /127.0.0.1:49650 => /127.0.0.1:44230] FLUSH
10:20:10.840 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.840 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde5897a0, /127.0.0.1:49650 => /127.0.0.1:44230] FLUSH
10:20:10.840 [nioEventLoopGroup-145-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-145-1
10:20:10.840 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde5897a0, /127.0.0.1:49650 :> /127.0.0.1:44230] INACTIVE
10:20:10.840 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde5897a0, /127.0.0.1:49650 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.864 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d174107, /127.0.0.1:49662 => /127.0.0.1:44230] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:44230
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:10.865 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.865 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.865 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:10.866 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.867 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.867 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.868 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.872 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:10.872 [nioEventLoopGroup-132-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:10.872 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d174107, /127.0.0.1:49662 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:10.873 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d174107, /127.0.0.1:49662 => /127.0.0.1:44230] FLUSH
10:20:10.880 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5afce9ba, /127.0.0.1:49666 => /127.0.0.1:44230] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:44230
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:10.881 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.881 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.881 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:10.882 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.882 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.882 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.883 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:10.883 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:10.884 [nioEventLoopGroup-132-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44230" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:10.884 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5afce9ba, /127.0.0.1:49666 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:10.884 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5afce9ba, /127.0.0.1:49666 => /127.0.0.1:44230] FLUSH
10:20:10.885 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:10.894 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x378d8118, /127.0.0.1:49668 => /127.0.0.1:44230] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44230
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:10.895 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x378d8118, /127.0.0.1:49668 => /127.0.0.1:44230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:10.895 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x378d8118, /127.0.0.1:49668 => /127.0.0.1:44230] FLUSH
10:20:10.895 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x378d8118, /127.0.0.1:49668 => /127.0.0.1:44230] CLOSE()
10:20:10.895 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:10.896 [nioEventLoopGroup-146-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-146-1
10:20:10.917 [nioEventLoopGroup-132-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-4
10:20:10.917 [nioEventLoopGroup-132-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-2
10:20:10.917 [nioEventLoopGroup-132-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-3
10:20:10.917 [nioEventLoopGroup-132-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-12
10:20:10.917 [nioEventLoopGroup-132-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-5
10:20:10.917 [nioEventLoopGroup-132-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-11
10:20:10.917 [nioEventLoopGroup-132-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-6
10:20:10.917 [nioEventLoopGroup-132-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-7
10:20:10.917 [nioEventLoopGroup-132-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-8
10:20:10.917 [nioEventLoopGroup-132-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-9
10:20:10.917 [nioEventLoopGroup-132-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-10
10:20:10.917 [nioEventLoopGroup-132-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-13
10:20:10.918 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d174107, /127.0.0.1:49662 :> /127.0.0.1:44230] INACTIVE
10:20:10.918 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5afce9ba, /127.0.0.1:49666 :> /127.0.0.1:44230] INACTIVE
10:20:10.918 [nioEventLoopGroup-132-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-1
10:20:10.918 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d174107, /127.0.0.1:49662 :> /127.0.0.1:44230] UNREGISTERED
10:20:10.918 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5afce9ba, /127.0.0.1:49666 :> /127.0.0.1:44230] UNREGISTERED
10:20:11.262 [MockServer thread for port: 43176] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43176
10:20:11.263 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.265 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c3dfd2, /127.0.0.1:49376 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.266 [nioEventLoopGroup-148-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:11.267 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c3dfd2, /127.0.0.1:49376 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.267 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c3dfd2, /127.0.0.1:49376 => /127.0.0.1:43176] FLUSH
10:20:11.267 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c3dfd2, /127.0.0.1:49376 => /127.0.0.1:43176] FLUSH
10:20:11.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.267 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c3dfd2, /127.0.0.1:49376 :> /127.0.0.1:43176] INACTIVE
10:20:11.267 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1c3dfd2, /127.0.0.1:49376 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.267 [nioEventLoopGroup-149-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-149-1
10:20:11.276 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.308 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9614f1e, /127.0.0.1:49380 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.309 [nioEventLoopGroup-116-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-14
10:20:11.310 [nioEventLoopGroup-148-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:11.311 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9614f1e, /127.0.0.1:49380 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.311 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9614f1e, /127.0.0.1:49380 => /127.0.0.1:43176] FLUSH
10:20:11.313 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9614f1e, /127.0.0.1:49380 => /127.0.0.1:43176] FLUSH
10:20:11.313 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9614f1e, /127.0.0.1:49380 :> /127.0.0.1:43176] INACTIVE
10:20:11.314 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9614f1e, /127.0.0.1:49380 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.316 [nioEventLoopGroup-150-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-150-1
10:20:11.319 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.324 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd1c43d, /127.0.0.1:49386 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.325 [nioEventLoopGroup-148-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:11.325 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd1c43d, /127.0.0.1:49386 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.326 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd1c43d, /127.0.0.1:49386 => /127.0.0.1:43176] FLUSH
10:20:11.326 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.326 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd1c43d, /127.0.0.1:49386 => /127.0.0.1:43176] FLUSH
10:20:11.326 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd1c43d, /127.0.0.1:49386 :> /127.0.0.1:43176] INACTIVE
10:20:11.326 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd1c43d, /127.0.0.1:49386 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.326 [nioEventLoopGroup-151-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-151-1
10:20:11.327 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.332 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15a2e33, /127.0.0.1:49388 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.333 [nioEventLoopGroup-148-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:11.334 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15a2e33, /127.0.0.1:49388 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.334 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15a2e33, /127.0.0.1:49388 => /127.0.0.1:43176] FLUSH
10:20:11.334 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.335 [nioEventLoopGroup-152-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-152-1
10:20:11.335 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15a2e33, /127.0.0.1:49388 => /127.0.0.1:43176] FLUSH
10:20:11.335 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15a2e33, /127.0.0.1:49388 :> /127.0.0.1:43176] INACTIVE
10:20:11.335 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe15a2e33, /127.0.0.1:49388 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.358 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.361 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795b440, /127.0.0.1:49394 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.362 [nioEventLoopGroup-148-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:11.363 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795b440, /127.0.0.1:49394 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.363 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795b440, /127.0.0.1:49394 => /127.0.0.1:43176] FLUSH
10:20:11.363 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.363 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795b440, /127.0.0.1:49394 => /127.0.0.1:43176] FLUSH
10:20:11.364 [nioEventLoopGroup-153-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-153-1
10:20:11.364 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795b440, /127.0.0.1:49394 :> /127.0.0.1:43176] INACTIVE
10:20:11.364 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795b440, /127.0.0.1:49394 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.374 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.381 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43a05c01, /127.0.0.1:49398 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.382 [nioEventLoopGroup-148-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:11.382 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43a05c01, /127.0.0.1:49398 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.382 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43a05c01, /127.0.0.1:49398 => /127.0.0.1:43176] FLUSH
10:20:11.384 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.384 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43a05c01, /127.0.0.1:49398 => /127.0.0.1:43176] FLUSH
10:20:11.384 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43a05c01, /127.0.0.1:49398 :> /127.0.0.1:43176] INACTIVE
10:20:11.384 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43a05c01, /127.0.0.1:49398 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.392 [nioEventLoopGroup-154-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-154-1
10:20:11.392 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.396 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb32e7d78, /127.0.0.1:49402 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.397 [nioEventLoopGroup-148-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:11.397 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb32e7d78, /127.0.0.1:49402 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.397 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb32e7d78, /127.0.0.1:49402 => /127.0.0.1:43176] FLUSH
10:20:11.398 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb32e7d78, /127.0.0.1:49402 => /127.0.0.1:43176] FLUSH
10:20:11.398 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.398 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb32e7d78, /127.0.0.1:49402 :> /127.0.0.1:43176] INACTIVE
10:20:11.398 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb32e7d78, /127.0.0.1:49402 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.398 [nioEventLoopGroup-155-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-155-1
10:20:11.404 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.408 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe22fc5ad, /127.0.0.1:49406 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.409 [nioEventLoopGroup-148-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:11.409 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe22fc5ad, /127.0.0.1:49406 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.410 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe22fc5ad, /127.0.0.1:49406 => /127.0.0.1:43176] FLUSH
10:20:11.410 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.411 [nioEventLoopGroup-156-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-156-1
10:20:11.411 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe22fc5ad, /127.0.0.1:49406 => /127.0.0.1:43176] FLUSH
10:20:11.412 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe22fc5ad, /127.0.0.1:49406 :> /127.0.0.1:43176] INACTIVE
10:20:11.412 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe22fc5ad, /127.0.0.1:49406 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.417 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x378d8118, /127.0.0.1:49668 :> /127.0.0.1:44230] FLUSH
10:20:11.417 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x378d8118, /127.0.0.1:49668 :> /127.0.0.1:44230] INACTIVE
10:20:11.417 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x378d8118, /127.0.0.1:49668 :> /127.0.0.1:44230] UNREGISTERED
10:20:11.417 [nioEventLoopGroup-132-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-16
10:20:11.419 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.423 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xada15cbd, /127.0.0.1:49408 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.424 [nioEventLoopGroup-148-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:11.424 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xada15cbd, /127.0.0.1:49408 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.424 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xada15cbd, /127.0.0.1:49408 => /127.0.0.1:43176] FLUSH
10:20:11.425 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xada15cbd, /127.0.0.1:49408 => /127.0.0.1:43176] FLUSH
10:20:11.424 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.425 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xada15cbd, /127.0.0.1:49408 :> /127.0.0.1:43176] INACTIVE
10:20:11.425 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xada15cbd, /127.0.0.1:49408 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.425 [nioEventLoopGroup-157-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-157-1
10:20:11.428 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.431 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09785294, /127.0.0.1:49412 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.432 [nioEventLoopGroup-148-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:11.432 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09785294, /127.0.0.1:49412 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.432 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09785294, /127.0.0.1:49412 => /127.0.0.1:43176] FLUSH
10:20:11.432 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09785294, /127.0.0.1:49412 => /127.0.0.1:43176] FLUSH
10:20:11.432 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.433 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09785294, /127.0.0.1:49412 :> /127.0.0.1:43176] INACTIVE
10:20:11.433 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09785294, /127.0.0.1:49412 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.433 [nioEventLoopGroup-158-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-158-1
10:20:11.436 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.440 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaea34da7, /127.0.0.1:49414 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.441 [nioEventLoopGroup-148-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:11.442 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaea34da7, /127.0.0.1:49414 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.442 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaea34da7, /127.0.0.1:49414 => /127.0.0.1:43176] FLUSH
10:20:11.442 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaea34da7, /127.0.0.1:49414 => /127.0.0.1:43176] FLUSH
10:20:11.442 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.443 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaea34da7, /127.0.0.1:49414 :> /127.0.0.1:43176] INACTIVE
10:20:11.443 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaea34da7, /127.0.0.1:49414 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.443 [nioEventLoopGroup-159-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-159-1
10:20:11.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.456 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8aa96b, /127.0.0.1:49418 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.458 [nioEventLoopGroup-148-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:11.458 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8aa96b, /127.0.0.1:49418 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.458 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8aa96b, /127.0.0.1:49418 => /127.0.0.1:43176] FLUSH
10:20:11.459 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.459 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8aa96b, /127.0.0.1:49418 => /127.0.0.1:43176] FLUSH
10:20:11.459 [nioEventLoopGroup-160-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-160-1
10:20:11.459 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8aa96b, /127.0.0.1:49418 :> /127.0.0.1:43176] INACTIVE
10:20:11.460 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a8aa96b, /127.0.0.1:49418 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.463 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.469 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42294e54, /127.0.0.1:49422 => /127.0.0.1:43176] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.470 [nioEventLoopGroup-148-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:11.470 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42294e54, /127.0.0.1:49422 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.471 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42294e54, /127.0.0.1:49422 => /127.0.0.1:43176] FLUSH
10:20:11.471 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42294e54, /127.0.0.1:49422 => /127.0.0.1:43176] FLUSH
10:20:11.471 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.471 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42294e54, /127.0.0.1:49422 :> /127.0.0.1:43176] INACTIVE
10:20:11.471 [nioEventLoopGroup-161-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-161-1
10:20:11.471 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42294e54, /127.0.0.1:49422 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.508 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1369a3a6, /127.0.0.1:49428 => /127.0.0.1:43176] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:43176
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:11.508 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.509 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.509 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:11.510 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.510 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.510 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.511 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.511 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.512 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:11.512 [nioEventLoopGroup-148-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:11.512 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1369a3a6, /127.0.0.1:49428 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:11.512 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1369a3a6, /127.0.0.1:49428 => /127.0.0.1:43176] FLUSH
10:20:11.519 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95d29b67, /127.0.0.1:49432 => /127.0.0.1:43176] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:43176
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:11.520 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.520 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.521 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:11.521 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.521 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.522 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.522 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.522 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:11.523 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:11.523 [nioEventLoopGroup-148-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43176" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:11.524 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95d29b67, /127.0.0.1:49432 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:11.524 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95d29b67, /127.0.0.1:49432 => /127.0.0.1:43176] FLUSH
10:20:11.525 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:11.527 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2775131d, /127.0.0.1:49434 => /127.0.0.1:43176] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43176
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:11.528 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2775131d, /127.0.0.1:49434 => /127.0.0.1:43176] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.528 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2775131d, /127.0.0.1:49434 => /127.0.0.1:43176] FLUSH
10:20:11.528 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2775131d, /127.0.0.1:49434 => /127.0.0.1:43176] CLOSE()
10:20:11.529 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.529 [nioEventLoopGroup-162-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-162-1
10:20:11.535 [nioEventLoopGroup-148-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-1
10:20:11.535 [nioEventLoopGroup-148-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-5
10:20:11.535 [nioEventLoopGroup-148-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-3
10:20:11.535 [nioEventLoopGroup-148-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-4
10:20:11.536 [nioEventLoopGroup-148-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-2
10:20:11.536 [nioEventLoopGroup-148-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-6
10:20:11.536 [nioEventLoopGroup-148-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-8
10:20:11.536 [nioEventLoopGroup-148-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-11
10:20:11.536 [nioEventLoopGroup-148-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-12
10:20:11.536 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1369a3a6, /127.0.0.1:49428 :> /127.0.0.1:43176] INACTIVE
10:20:11.536 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95d29b67, /127.0.0.1:49432 :> /127.0.0.1:43176] INACTIVE
10:20:11.536 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1369a3a6, /127.0.0.1:49428 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.536 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95d29b67, /127.0.0.1:49432 :> /127.0.0.1:43176] UNREGISTERED
10:20:11.537 [nioEventLoopGroup-148-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-7
10:20:11.537 [nioEventLoopGroup-148-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-9
10:20:11.537 [nioEventLoopGroup-148-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-10
10:20:11.537 [nioEventLoopGroup-148-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-13
10:20:11.883 [MockServer thread for port: 41499] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41499
10:20:11.884 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.888 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6cf4137, /127.0.0.1:46992 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.889 [nioEventLoopGroup-164-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:11.890 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6cf4137, /127.0.0.1:46992 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.890 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6cf4137, /127.0.0.1:46992 => /127.0.0.1:41499] FLUSH
10:20:11.899 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.900 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6cf4137, /127.0.0.1:46992 => /127.0.0.1:41499] FLUSH
10:20:11.900 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6cf4137, /127.0.0.1:46992 :> /127.0.0.1:41499] INACTIVE
10:20:11.900 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf6cf4137, /127.0.0.1:46992 :> /127.0.0.1:41499] UNREGISTERED
10:20:11.900 [nioEventLoopGroup-165-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-165-1
10:20:11.910 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.914 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f732056, /127.0.0.1:46996 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.915 [nioEventLoopGroup-164-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:11.916 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f732056, /127.0.0.1:46996 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.916 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f732056, /127.0.0.1:46996 => /127.0.0.1:41499] FLUSH
10:20:11.916 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f732056, /127.0.0.1:46996 => /127.0.0.1:41499] FLUSH
10:20:11.916 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.916 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f732056, /127.0.0.1:46996 :> /127.0.0.1:41499] INACTIVE
10:20:11.916 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f732056, /127.0.0.1:46996 :> /127.0.0.1:41499] UNREGISTERED
10:20:11.917 [nioEventLoopGroup-166-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-166-1
10:20:11.919 [nioEventLoopGroup-132-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-14
10:20:11.919 [nioEventLoopGroup-132-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-15
10:20:11.932 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.935 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b3712f5, /127.0.0.1:47002 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.944 [nioEventLoopGroup-164-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:11.945 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b3712f5, /127.0.0.1:47002 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.945 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b3712f5, /127.0.0.1:47002 => /127.0.0.1:41499] FLUSH
10:20:11.945 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.946 [nioEventLoopGroup-167-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-167-1
10:20:11.946 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b3712f5, /127.0.0.1:47002 => /127.0.0.1:41499] FLUSH
10:20:11.946 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b3712f5, /127.0.0.1:47002 :> /127.0.0.1:41499] INACTIVE
10:20:11.946 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b3712f5, /127.0.0.1:47002 :> /127.0.0.1:41499] UNREGISTERED
10:20:11.951 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.954 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64fae6c9, /127.0.0.1:47006 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.955 [nioEventLoopGroup-164-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:11.955 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64fae6c9, /127.0.0.1:47006 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.955 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64fae6c9, /127.0.0.1:47006 => /127.0.0.1:41499] FLUSH
10:20:11.956 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.956 [nioEventLoopGroup-168-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-168-1
10:20:11.956 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64fae6c9, /127.0.0.1:47006 => /127.0.0.1:41499] FLUSH
10:20:11.956 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64fae6c9, /127.0.0.1:47006 :> /127.0.0.1:41499] INACTIVE
10:20:11.956 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64fae6c9, /127.0.0.1:47006 :> /127.0.0.1:41499] UNREGISTERED
10:20:11.960 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.963 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x225fd5a6, /127.0.0.1:47010 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.965 [nioEventLoopGroup-164-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:11.965 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x225fd5a6, /127.0.0.1:47010 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.965 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x225fd5a6, /127.0.0.1:47010 => /127.0.0.1:41499] FLUSH
10:20:11.965 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x225fd5a6, /127.0.0.1:47010 => /127.0.0.1:41499] FLUSH
10:20:11.965 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.966 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x225fd5a6, /127.0.0.1:47010 :> /127.0.0.1:41499] INACTIVE
10:20:11.966 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x225fd5a6, /127.0.0.1:47010 :> /127.0.0.1:41499] UNREGISTERED
10:20:11.966 [nioEventLoopGroup-169-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-169-1
10:20:11.976 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.982 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a9cfa0b, /127.0.0.1:47016 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:11.983 [nioEventLoopGroup-164-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:11.984 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a9cfa0b, /127.0.0.1:47016 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:11.984 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a9cfa0b, /127.0.0.1:47016 => /127.0.0.1:41499] FLUSH
10:20:11.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:11.984 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a9cfa0b, /127.0.0.1:47016 => /127.0.0.1:41499] FLUSH
10:20:11.984 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a9cfa0b, /127.0.0.1:47016 :> /127.0.0.1:41499] INACTIVE
10:20:11.984 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a9cfa0b, /127.0.0.1:47016 :> /127.0.0.1:41499] UNREGISTERED
10:20:11.985 [nioEventLoopGroup-170-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-170-1
10:20:11.996 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:11.999 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e3ce929, /127.0.0.1:47018 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.000 [nioEventLoopGroup-164-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:12.000 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e3ce929, /127.0.0.1:47018 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.000 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e3ce929, /127.0.0.1:47018 => /127.0.0.1:41499] FLUSH
10:20:12.001 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e3ce929, /127.0.0.1:47018 => /127.0.0.1:41499] FLUSH
10:20:12.000 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.001 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e3ce929, /127.0.0.1:47018 :> /127.0.0.1:41499] INACTIVE
10:20:12.001 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e3ce929, /127.0.0.1:47018 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.001 [nioEventLoopGroup-171-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-171-1
10:20:12.005 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.008 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d1e898, /127.0.0.1:47020 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.009 [nioEventLoopGroup-164-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:12.009 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d1e898, /127.0.0.1:47020 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.009 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d1e898, /127.0.0.1:47020 => /127.0.0.1:41499] FLUSH
10:20:12.010 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.010 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d1e898, /127.0.0.1:47020 => /127.0.0.1:41499] FLUSH
10:20:12.010 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d1e898, /127.0.0.1:47020 :> /127.0.0.1:41499] INACTIVE
10:20:12.010 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x96d1e898, /127.0.0.1:47020 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.010 [nioEventLoopGroup-172-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-172-1
10:20:12.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.015 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4c51345, /127.0.0.1:47022 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.016 [nioEventLoopGroup-164-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:12.016 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4c51345, /127.0.0.1:47022 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.016 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4c51345, /127.0.0.1:47022 => /127.0.0.1:41499] FLUSH
10:20:12.016 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.016 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4c51345, /127.0.0.1:47022 => /127.0.0.1:41499] FLUSH
10:20:12.017 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4c51345, /127.0.0.1:47022 :> /127.0.0.1:41499] INACTIVE
10:20:12.017 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4c51345, /127.0.0.1:47022 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.017 [nioEventLoopGroup-173-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-173-1
10:20:12.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.022 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e6a0072, /127.0.0.1:47024 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.023 [nioEventLoopGroup-164-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:12.023 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e6a0072, /127.0.0.1:47024 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.023 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e6a0072, /127.0.0.1:47024 => /127.0.0.1:41499] FLUSH
10:20:12.024 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.024 [nioEventLoopGroup-174-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-174-1
10:20:12.024 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e6a0072, /127.0.0.1:47024 => /127.0.0.1:41499] FLUSH
10:20:12.024 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e6a0072, /127.0.0.1:47024 :> /127.0.0.1:41499] INACTIVE
10:20:12.024 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e6a0072, /127.0.0.1:47024 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.028 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc71ff0b6, /127.0.0.1:47026 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.029 [nioEventLoopGroup-164-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:12.029 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc71ff0b6, /127.0.0.1:47026 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.029 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc71ff0b6, /127.0.0.1:47026 => /127.0.0.1:41499] FLUSH
10:20:12.029 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.029 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc71ff0b6, /127.0.0.1:47026 => /127.0.0.1:41499] FLUSH
10:20:12.030 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc71ff0b6, /127.0.0.1:47026 :> /127.0.0.1:41499] INACTIVE
10:20:12.030 [nioEventLoopGroup-175-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-175-1
10:20:12.030 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc71ff0b6, /127.0.0.1:47026 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.031 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.034 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd41b7859, /127.0.0.1:47028 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.035 [nioEventLoopGroup-164-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:12.035 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2775131d, /127.0.0.1:49434 :> /127.0.0.1:43176] FLUSH
10:20:12.035 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd41b7859, /127.0.0.1:47028 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.035 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2775131d, /127.0.0.1:49434 :> /127.0.0.1:43176] INACTIVE
10:20:12.035 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2775131d, /127.0.0.1:49434 :> /127.0.0.1:43176] UNREGISTERED
10:20:12.036 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd41b7859, /127.0.0.1:47028 => /127.0.0.1:41499] FLUSH
10:20:12.036 [nioEventLoopGroup-148-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-16
10:20:12.036 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.036 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd41b7859, /127.0.0.1:47028 => /127.0.0.1:41499] FLUSH
10:20:12.036 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd41b7859, /127.0.0.1:47028 :> /127.0.0.1:41499] INACTIVE
10:20:12.036 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd41b7859, /127.0.0.1:47028 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.037 [nioEventLoopGroup-176-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-176-1
10:20:12.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.043 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2410e389, /127.0.0.1:47030 => /127.0.0.1:41499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.044 [nioEventLoopGroup-164-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:12.044 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2410e389, /127.0.0.1:47030 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.044 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2410e389, /127.0.0.1:47030 => /127.0.0.1:41499] FLUSH
10:20:12.045 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.045 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2410e389, /127.0.0.1:47030 => /127.0.0.1:41499] FLUSH
10:20:12.045 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2410e389, /127.0.0.1:47030 :> /127.0.0.1:41499] INACTIVE
10:20:12.045 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2410e389, /127.0.0.1:47030 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.045 [nioEventLoopGroup-177-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-177-1
10:20:12.053 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32d7839, /127.0.0.1:47032 => /127.0.0.1:41499] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:41499
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:12.054 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.054 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.055 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:12.055 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.055 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.056 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.056 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.056 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.057 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.057 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:12.058 [nioEventLoopGroup-164-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:12.058 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32d7839, /127.0.0.1:47032 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:12.058 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32d7839, /127.0.0.1:47032 => /127.0.0.1:41499] FLUSH
10:20:12.066 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f212a9, /127.0.0.1:47034 => /127.0.0.1:41499] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:41499
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:12.066 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.067 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.067 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:12.067 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.068 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.068 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.068 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.068 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.068 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.069 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:12.069 [nioEventLoopGroup-164-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41499" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:12.069 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f212a9, /127.0.0.1:47034 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:12.069 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f212a9, /127.0.0.1:47034 => /127.0.0.1:41499] FLUSH
10:20:12.070 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:12.075 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ce6b4e3, /127.0.0.1:47036 => /127.0.0.1:41499] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41499
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:12.075 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ce6b4e3, /127.0.0.1:47036 => /127.0.0.1:41499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.075 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ce6b4e3, /127.0.0.1:47036 => /127.0.0.1:41499] FLUSH
10:20:12.076 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ce6b4e3, /127.0.0.1:47036 => /127.0.0.1:41499] CLOSE()
10:20:12.076 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.084 [nioEventLoopGroup-178-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-178-1
10:20:12.092 [nioEventLoopGroup-164-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-5
10:20:12.092 [nioEventLoopGroup-164-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-1
10:20:12.092 [nioEventLoopGroup-164-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-2
10:20:12.092 [nioEventLoopGroup-164-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-3
10:20:12.092 [nioEventLoopGroup-164-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-4
10:20:12.092 [nioEventLoopGroup-164-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-6
10:20:12.093 [nioEventLoopGroup-164-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-7
10:20:12.093 [nioEventLoopGroup-164-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-8
10:20:12.093 [nioEventLoopGroup-164-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-9
10:20:12.093 [nioEventLoopGroup-164-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-10
10:20:12.093 [nioEventLoopGroup-164-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-11
10:20:12.093 [nioEventLoopGroup-164-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-12
10:20:12.093 [nioEventLoopGroup-164-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-13
10:20:12.093 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32d7839, /127.0.0.1:47032 :> /127.0.0.1:41499] INACTIVE
10:20:12.093 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f212a9, /127.0.0.1:47034 :> /127.0.0.1:41499] INACTIVE
10:20:12.105 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32d7839, /127.0.0.1:47032 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.105 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f212a9, /127.0.0.1:47034 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.448 [MockServer thread for port: 40194] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40194
10:20:12.448 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.453 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1481a5f, /127.0.0.1:34676 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.454 [nioEventLoopGroup-180-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:12.455 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1481a5f, /127.0.0.1:34676 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.455 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1481a5f, /127.0.0.1:34676 => /127.0.0.1:40194] FLUSH
10:20:12.455 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1481a5f, /127.0.0.1:34676 => /127.0.0.1:40194] FLUSH
10:20:12.455 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.455 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1481a5f, /127.0.0.1:34676 :> /127.0.0.1:40194] INACTIVE
10:20:12.455 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1481a5f, /127.0.0.1:34676 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.458 [nioEventLoopGroup-181-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-181-1
10:20:12.462 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.465 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8ffbc46, /127.0.0.1:34680 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.466 [nioEventLoopGroup-180-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:12.467 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8ffbc46, /127.0.0.1:34680 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.467 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8ffbc46, /127.0.0.1:34680 => /127.0.0.1:40194] FLUSH
10:20:12.470 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.470 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8ffbc46, /127.0.0.1:34680 => /127.0.0.1:40194] FLUSH
10:20:12.471 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8ffbc46, /127.0.0.1:34680 :> /127.0.0.1:40194] INACTIVE
10:20:12.471 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8ffbc46, /127.0.0.1:34680 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.475 [nioEventLoopGroup-182-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-182-1
10:20:12.476 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.479 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd96979eb, /127.0.0.1:34682 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.480 [nioEventLoopGroup-180-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:12.480 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd96979eb, /127.0.0.1:34682 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.480 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd96979eb, /127.0.0.1:34682 => /127.0.0.1:40194] FLUSH
10:20:12.481 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.481 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd96979eb, /127.0.0.1:34682 => /127.0.0.1:40194] FLUSH
10:20:12.481 [nioEventLoopGroup-183-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-183-1
10:20:12.487 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd96979eb, /127.0.0.1:34682 :> /127.0.0.1:40194] INACTIVE
10:20:12.487 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd96979eb, /127.0.0.1:34682 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.489 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.493 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51248df, /127.0.0.1:34688 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.494 [nioEventLoopGroup-180-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:12.494 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51248df, /127.0.0.1:34688 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.494 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51248df, /127.0.0.1:34688 => /127.0.0.1:40194] FLUSH
10:20:12.495 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51248df, /127.0.0.1:34688 => /127.0.0.1:40194] FLUSH
10:20:12.495 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.495 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51248df, /127.0.0.1:34688 :> /127.0.0.1:40194] INACTIVE
10:20:12.495 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa51248df, /127.0.0.1:34688 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.495 [nioEventLoopGroup-184-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-184-1
10:20:12.499 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.504 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x579af55c, /127.0.0.1:34692 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.504 [nioEventLoopGroup-180-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:12.505 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x579af55c, /127.0.0.1:34692 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.505 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x579af55c, /127.0.0.1:34692 => /127.0.0.1:40194] FLUSH
10:20:12.505 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x579af55c, /127.0.0.1:34692 => /127.0.0.1:40194] FLUSH
10:20:12.505 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.505 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x579af55c, /127.0.0.1:34692 :> /127.0.0.1:40194] INACTIVE
10:20:12.506 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x579af55c, /127.0.0.1:34692 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.507 [nioEventLoopGroup-185-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-185-1
10:20:12.508 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.511 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7778202, /127.0.0.1:34694 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.512 [nioEventLoopGroup-180-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:12.512 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7778202, /127.0.0.1:34694 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.512 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7778202, /127.0.0.1:34694 => /127.0.0.1:40194] FLUSH
10:20:12.513 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.513 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7778202, /127.0.0.1:34694 => /127.0.0.1:40194] FLUSH
10:20:12.513 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7778202, /127.0.0.1:34694 :> /127.0.0.1:40194] INACTIVE
10:20:12.513 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7778202, /127.0.0.1:34694 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.513 [nioEventLoopGroup-186-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-186-1
10:20:12.514 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.516 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5a6b5a3, /127.0.0.1:34696 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.517 [nioEventLoopGroup-180-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:12.517 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5a6b5a3, /127.0.0.1:34696 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.517 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5a6b5a3, /127.0.0.1:34696 => /127.0.0.1:40194] FLUSH
10:20:12.518 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5a6b5a3, /127.0.0.1:34696 => /127.0.0.1:40194] FLUSH
10:20:12.518 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.518 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5a6b5a3, /127.0.0.1:34696 :> /127.0.0.1:40194] INACTIVE
10:20:12.518 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5a6b5a3, /127.0.0.1:34696 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.518 [nioEventLoopGroup-187-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-187-1
10:20:12.519 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.521 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4613806, /127.0.0.1:34698 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.522 [nioEventLoopGroup-180-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:12.522 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4613806, /127.0.0.1:34698 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.522 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4613806, /127.0.0.1:34698 => /127.0.0.1:40194] FLUSH
10:20:12.523 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.523 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4613806, /127.0.0.1:34698 => /127.0.0.1:40194] FLUSH
10:20:12.523 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4613806, /127.0.0.1:34698 :> /127.0.0.1:40194] INACTIVE
10:20:12.523 [nioEventLoopGroup-188-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-188-1
10:20:12.523 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4613806, /127.0.0.1:34698 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.532 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.534 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6480ccc, /127.0.0.1:34700 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.535 [nioEventLoopGroup-180-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:12.535 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6480ccc, /127.0.0.1:34700 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.535 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6480ccc, /127.0.0.1:34700 => /127.0.0.1:40194] FLUSH
10:20:12.535 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6480ccc, /127.0.0.1:34700 => /127.0.0.1:40194] FLUSH
10:20:12.535 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.535 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6480ccc, /127.0.0.1:34700 :> /127.0.0.1:40194] INACTIVE
10:20:12.535 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6480ccc, /127.0.0.1:34700 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.535 [nioEventLoopGroup-189-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-189-1
10:20:12.538 [nioEventLoopGroup-148-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-15
10:20:12.538 [nioEventLoopGroup-148-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-14
10:20:12.543 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.545 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23ddf3e1, /127.0.0.1:34702 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.546 [nioEventLoopGroup-180-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:12.546 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23ddf3e1, /127.0.0.1:34702 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.546 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23ddf3e1, /127.0.0.1:34702 => /127.0.0.1:40194] FLUSH
10:20:12.546 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.546 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23ddf3e1, /127.0.0.1:34702 => /127.0.0.1:40194] FLUSH
10:20:12.547 [nioEventLoopGroup-190-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-190-1
10:20:12.547 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23ddf3e1, /127.0.0.1:34702 :> /127.0.0.1:40194] INACTIVE
10:20:12.547 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23ddf3e1, /127.0.0.1:34702 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.548 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.550 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a10491a, /127.0.0.1:34704 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.551 [nioEventLoopGroup-180-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:12.551 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a10491a, /127.0.0.1:34704 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.551 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a10491a, /127.0.0.1:34704 => /127.0.0.1:40194] FLUSH
10:20:12.551 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.551 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a10491a, /127.0.0.1:34704 => /127.0.0.1:40194] FLUSH
10:20:12.552 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a10491a, /127.0.0.1:34704 :> /127.0.0.1:40194] INACTIVE
10:20:12.552 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a10491a, /127.0.0.1:34704 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.552 [nioEventLoopGroup-191-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-191-1
10:20:12.564 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.567 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0172f8ee, /127.0.0.1:34706 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.568 [nioEventLoopGroup-180-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:12.568 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0172f8ee, /127.0.0.1:34706 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.569 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0172f8ee, /127.0.0.1:34706 => /127.0.0.1:40194] FLUSH
10:20:12.569 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0172f8ee, /127.0.0.1:34706 => /127.0.0.1:40194] FLUSH
10:20:12.569 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.569 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0172f8ee, /127.0.0.1:34706 :> /127.0.0.1:40194] INACTIVE
10:20:12.569 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0172f8ee, /127.0.0.1:34706 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.569 [nioEventLoopGroup-192-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-192-1
10:20:12.571 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.574 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6323166f, /127.0.0.1:34708 => /127.0.0.1:40194] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.575 [nioEventLoopGroup-180-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:12.576 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6323166f, /127.0.0.1:34708 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.576 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6323166f, /127.0.0.1:34708 => /127.0.0.1:40194] FLUSH
10:20:12.576 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6323166f, /127.0.0.1:34708 => /127.0.0.1:40194] FLUSH
10:20:12.576 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.577 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6323166f, /127.0.0.1:34708 :> /127.0.0.1:40194] INACTIVE
10:20:12.577 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6323166f, /127.0.0.1:34708 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.577 [nioEventLoopGroup-193-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-193-1
10:20:12.584 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5ae1ef0, /127.0.0.1:34710 => /127.0.0.1:40194] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:40194
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:12.585 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.585 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.586 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:12.586 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.586 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.587 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.587 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.588 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.588 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.588 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.589 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:12.589 [nioEventLoopGroup-180-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:12.589 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5ae1ef0, /127.0.0.1:34710 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:12.590 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5ae1ef0, /127.0.0.1:34710 => /127.0.0.1:40194] FLUSH
10:20:12.592 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ce6b4e3, /127.0.0.1:47036 :> /127.0.0.1:41499] FLUSH
10:20:12.592 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ce6b4e3, /127.0.0.1:47036 :> /127.0.0.1:41499] INACTIVE
10:20:12.592 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ce6b4e3, /127.0.0.1:47036 :> /127.0.0.1:41499] UNREGISTERED
10:20:12.593 [nioEventLoopGroup-164-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-16
10:20:12.598 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe60d11f1, /127.0.0.1:34712 => /127.0.0.1:40194] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:40194
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:12.598 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.598 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.599 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:12.599 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.599 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.599 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.599 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.600 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.600 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.600 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:12.600 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:12.601 [nioEventLoopGroup-180-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40194" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:12.601 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe60d11f1, /127.0.0.1:34712 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:12.601 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe60d11f1, /127.0.0.1:34712 => /127.0.0.1:40194] FLUSH
10:20:12.602 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:12.605 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6cc856, /127.0.0.1:34714 => /127.0.0.1:40194] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40194
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:12.605 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6cc856, /127.0.0.1:34714 => /127.0.0.1:40194] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.606 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6cc856, /127.0.0.1:34714 => /127.0.0.1:40194] FLUSH
10:20:12.606 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6cc856, /127.0.0.1:34714 => /127.0.0.1:40194] CLOSE()
10:20:12.607 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.607 [nioEventLoopGroup-194-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-194-1
10:20:12.620 [nioEventLoopGroup-180-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-8
10:20:12.620 [nioEventLoopGroup-180-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-6
10:20:12.620 [nioEventLoopGroup-180-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-1
10:20:12.620 [nioEventLoopGroup-180-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-4
10:20:12.620 [nioEventLoopGroup-180-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-2
10:20:12.620 [nioEventLoopGroup-180-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-11
10:20:12.620 [nioEventLoopGroup-180-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-7
10:20:12.620 [nioEventLoopGroup-180-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-3
10:20:12.620 [nioEventLoopGroup-180-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-9
10:20:12.620 [nioEventLoopGroup-180-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-10
10:20:12.620 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5ae1ef0, /127.0.0.1:34710 :> /127.0.0.1:40194] INACTIVE
10:20:12.620 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe60d11f1, /127.0.0.1:34712 :> /127.0.0.1:40194] INACTIVE
10:20:12.620 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5ae1ef0, /127.0.0.1:34710 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.620 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe60d11f1, /127.0.0.1:34712 :> /127.0.0.1:40194] UNREGISTERED
10:20:12.621 [nioEventLoopGroup-180-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-5
10:20:12.622 [nioEventLoopGroup-180-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-12
10:20:12.622 [nioEventLoopGroup-180-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-13
10:20:12.973 [MockServer thread for port: 46769] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 46769
10:20:12.973 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.977 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e57e14c, /127.0.0.1:34000 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.978 [nioEventLoopGroup-196-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:12.978 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e57e14c, /127.0.0.1:34000 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.979 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e57e14c, /127.0.0.1:34000 => /127.0.0.1:46769] FLUSH
10:20:12.979 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.979 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e57e14c, /127.0.0.1:34000 => /127.0.0.1:46769] FLUSH
10:20:12.979 [nioEventLoopGroup-197-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-197-1
10:20:12.979 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e57e14c, /127.0.0.1:34000 :> /127.0.0.1:46769] INACTIVE
10:20:12.979 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e57e14c, /127.0.0.1:34000 :> /127.0.0.1:46769] UNREGISTERED
10:20:12.981 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.985 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86c17441, /127.0.0.1:34004 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.987 [nioEventLoopGroup-196-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:12.988 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86c17441, /127.0.0.1:34004 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.988 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86c17441, /127.0.0.1:34004 => /127.0.0.1:46769] FLUSH
10:20:12.988 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.988 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86c17441, /127.0.0.1:34004 => /127.0.0.1:46769] FLUSH
10:20:12.988 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86c17441, /127.0.0.1:34004 :> /127.0.0.1:46769] INACTIVE
10:20:12.988 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x86c17441, /127.0.0.1:34004 :> /127.0.0.1:46769] UNREGISTERED
10:20:12.989 [nioEventLoopGroup-198-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-198-1
10:20:12.990 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:12.997 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf39fa2be, /127.0.0.1:34006 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:12.998 [nioEventLoopGroup-196-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:12.999 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf39fa2be, /127.0.0.1:34006 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:12.999 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf39fa2be, /127.0.0.1:34006 => /127.0.0.1:46769] FLUSH
10:20:12.999 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:12.999 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf39fa2be, /127.0.0.1:34006 => /127.0.0.1:46769] FLUSH
10:20:12.999 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf39fa2be, /127.0.0.1:34006 :> /127.0.0.1:46769] INACTIVE
10:20:12.999 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf39fa2be, /127.0.0.1:34006 :> /127.0.0.1:46769] UNREGISTERED
10:20:12.999 [nioEventLoopGroup-199-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-199-1
10:20:13.000 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.003 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09cd4f3b, /127.0.0.1:34008 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.004 [nioEventLoopGroup-196-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:13.004 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09cd4f3b, /127.0.0.1:34008 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.004 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09cd4f3b, /127.0.0.1:34008 => /127.0.0.1:46769] FLUSH
10:20:13.004 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.005 [nioEventLoopGroup-200-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-200-1
10:20:13.005 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09cd4f3b, /127.0.0.1:34008 => /127.0.0.1:46769] FLUSH
10:20:13.005 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09cd4f3b, /127.0.0.1:34008 :> /127.0.0.1:46769] INACTIVE
10:20:13.005 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09cd4f3b, /127.0.0.1:34008 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.007 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.010 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fc3526, /127.0.0.1:34010 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.011 [nioEventLoopGroup-196-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:13.011 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fc3526, /127.0.0.1:34010 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.011 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fc3526, /127.0.0.1:34010 => /127.0.0.1:46769] FLUSH
10:20:13.012 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fc3526, /127.0.0.1:34010 => /127.0.0.1:46769] FLUSH
10:20:13.011 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.012 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fc3526, /127.0.0.1:34010 :> /127.0.0.1:46769] INACTIVE
10:20:13.012 [nioEventLoopGroup-201-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-201-1
10:20:13.012 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9fc3526, /127.0.0.1:34010 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.013 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.016 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ba355a, /127.0.0.1:34012 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.017 [nioEventLoopGroup-196-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:13.018 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ba355a, /127.0.0.1:34012 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.018 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ba355a, /127.0.0.1:34012 => /127.0.0.1:46769] FLUSH
10:20:13.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.018 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ba355a, /127.0.0.1:34012 => /127.0.0.1:46769] FLUSH
10:20:13.019 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ba355a, /127.0.0.1:34012 :> /127.0.0.1:46769] INACTIVE
10:20:13.019 [nioEventLoopGroup-202-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-202-1
10:20:13.019 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71ba355a, /127.0.0.1:34012 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.020 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.023 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82064568, /127.0.0.1:34014 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.023 [nioEventLoopGroup-196-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:13.024 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82064568, /127.0.0.1:34014 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.024 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82064568, /127.0.0.1:34014 => /127.0.0.1:46769] FLUSH
10:20:13.024 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82064568, /127.0.0.1:34014 => /127.0.0.1:46769] FLUSH
10:20:13.024 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.024 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82064568, /127.0.0.1:34014 :> /127.0.0.1:46769] INACTIVE
10:20:13.024 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82064568, /127.0.0.1:34014 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.024 [nioEventLoopGroup-203-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-203-1
10:20:13.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.027 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0b7a3f, /127.0.0.1:34016 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.028 [nioEventLoopGroup-196-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:13.028 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0b7a3f, /127.0.0.1:34016 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.028 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0b7a3f, /127.0.0.1:34016 => /127.0.0.1:46769] FLUSH
10:20:13.029 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.029 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0b7a3f, /127.0.0.1:34016 => /127.0.0.1:46769] FLUSH
10:20:13.029 [nioEventLoopGroup-204-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-204-1
10:20:13.029 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0b7a3f, /127.0.0.1:34016 :> /127.0.0.1:46769] INACTIVE
10:20:13.029 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e0b7a3f, /127.0.0.1:34016 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.032 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.034 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb56eedf8, /127.0.0.1:34018 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.035 [nioEventLoopGroup-196-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:13.035 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb56eedf8, /127.0.0.1:34018 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.035 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb56eedf8, /127.0.0.1:34018 => /127.0.0.1:46769] FLUSH
10:20:13.036 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.036 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb56eedf8, /127.0.0.1:34018 => /127.0.0.1:46769] FLUSH
10:20:13.036 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb56eedf8, /127.0.0.1:34018 :> /127.0.0.1:46769] INACTIVE
10:20:13.036 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb56eedf8, /127.0.0.1:34018 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.036 [nioEventLoopGroup-205-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-205-1
10:20:13.037 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.039 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c48f9ce, /127.0.0.1:34020 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.040 [nioEventLoopGroup-196-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:13.040 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c48f9ce, /127.0.0.1:34020 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.040 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c48f9ce, /127.0.0.1:34020 => /127.0.0.1:46769] FLUSH
10:20:13.041 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.041 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c48f9ce, /127.0.0.1:34020 => /127.0.0.1:46769] FLUSH
10:20:13.041 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c48f9ce, /127.0.0.1:34020 :> /127.0.0.1:46769] INACTIVE
10:20:13.041 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c48f9ce, /127.0.0.1:34020 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.041 [nioEventLoopGroup-206-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-206-1
10:20:13.043 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.046 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x048db88d, /127.0.0.1:34022 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.046 [nioEventLoopGroup-196-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:13.046 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x048db88d, /127.0.0.1:34022 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.047 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x048db88d, /127.0.0.1:34022 => /127.0.0.1:46769] FLUSH
10:20:13.047 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.047 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x048db88d, /127.0.0.1:34022 => /127.0.0.1:46769] FLUSH
10:20:13.047 [nioEventLoopGroup-207-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-207-1
10:20:13.047 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x048db88d, /127.0.0.1:34022 :> /127.0.0.1:46769] INACTIVE
10:20:13.047 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x048db88d, /127.0.0.1:34022 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.048 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.050 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6ced2fd, /127.0.0.1:34024 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.051 [nioEventLoopGroup-196-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:13.051 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6ced2fd, /127.0.0.1:34024 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.052 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6ced2fd, /127.0.0.1:34024 => /127.0.0.1:46769] FLUSH
10:20:13.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.052 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6ced2fd, /127.0.0.1:34024 => /127.0.0.1:46769] FLUSH
10:20:13.052 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6ced2fd, /127.0.0.1:34024 :> /127.0.0.1:46769] INACTIVE
10:20:13.052 [nioEventLoopGroup-208-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-208-1
10:20:13.052 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6ced2fd, /127.0.0.1:34024 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.054 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.057 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66608714, /127.0.0.1:34026 => /127.0.0.1:46769] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.058 [nioEventLoopGroup-196-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:13.058 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66608714, /127.0.0.1:34026 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.058 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66608714, /127.0.0.1:34026 => /127.0.0.1:46769] FLUSH
10:20:13.059 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.059 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66608714, /127.0.0.1:34026 => /127.0.0.1:46769] FLUSH
10:20:13.059 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66608714, /127.0.0.1:34026 :> /127.0.0.1:46769] INACTIVE
10:20:13.059 [nioEventLoopGroup-209-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-209-1
10:20:13.059 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x66608714, /127.0.0.1:34026 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.062 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f5d7bef, /127.0.0.1:34028 => /127.0.0.1:46769] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:46769
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:13.062 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.063 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.063 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:13.063 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.063 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.064 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.064 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.064 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:13.065 [nioEventLoopGroup-196-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:13.065 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f5d7bef, /127.0.0.1:34028 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.065 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f5d7bef, /127.0.0.1:34028 => /127.0.0.1:46769] FLUSH
10:20:13.067 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f5d7bef, /127.0.0.1:34028 => /127.0.0.1:46769] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:46769
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:13.067 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.067 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.068 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:13.068 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.068 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.069 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.069 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.069 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:13.070 [nioEventLoopGroup-196-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46769" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:13.070 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f5d7bef, /127.0.0.1:34028 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.070 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f5d7bef, /127.0.0.1:34028 => /127.0.0.1:46769] FLUSH
10:20:13.070 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:13.072 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec97e7, /127.0.0.1:34030 => /127.0.0.1:46769] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:46769
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.073 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec97e7, /127.0.0.1:34030 => /127.0.0.1:46769] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.073 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec97e7, /127.0.0.1:34030 => /127.0.0.1:46769] FLUSH
10:20:13.073 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec97e7, /127.0.0.1:34030 => /127.0.0.1:46769] CLOSE()
10:20:13.074 [nioEventLoopGroup-196-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-4
10:20:13.074 [nioEventLoopGroup-196-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-6
10:20:13.074 [nioEventLoopGroup-196-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-3
10:20:13.074 [nioEventLoopGroup-196-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-5
10:20:13.074 [nioEventLoopGroup-196-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-7
10:20:13.074 [nioEventLoopGroup-196-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-2
10:20:13.075 [nioEventLoopGroup-196-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-8
10:20:13.075 [nioEventLoopGroup-196-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-9
10:20:13.075 [nioEventLoopGroup-196-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-10
10:20:13.075 [nioEventLoopGroup-196-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-11
10:20:13.075 [nioEventLoopGroup-196-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-13
10:20:13.075 [nioEventLoopGroup-196-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-12
10:20:13.075 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f5d7bef, /127.0.0.1:34028 :> /127.0.0.1:46769] INACTIVE
10:20:13.075 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f5d7bef, /127.0.0.1:34028 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.076 [nioEventLoopGroup-196-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-1
10:20:13.074 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.076 [nioEventLoopGroup-210-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-210-1
10:20:13.106 [nioEventLoopGroup-164-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-15
10:20:13.106 [nioEventLoopGroup-164-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-14
10:20:13.120 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6cc856, /127.0.0.1:34714 :> /127.0.0.1:40194] FLUSH
10:20:13.120 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6cc856, /127.0.0.1:34714 :> /127.0.0.1:40194] INACTIVE
10:20:13.120 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd6cc856, /127.0.0.1:34714 :> /127.0.0.1:40194] UNREGISTERED
10:20:13.120 [nioEventLoopGroup-180-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-16
10:20:13.432 [MockServer thread for port: 44989] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44989
10:20:13.433 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.435 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd35c08e4, /127.0.0.1:40972 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.436 [nioEventLoopGroup-212-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:13.436 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd35c08e4, /127.0.0.1:40972 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.436 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd35c08e4, /127.0.0.1:40972 => /127.0.0.1:44989] FLUSH
10:20:13.436 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.436 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd35c08e4, /127.0.0.1:40972 => /127.0.0.1:44989] FLUSH
10:20:13.436 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd35c08e4, /127.0.0.1:40972 :> /127.0.0.1:44989] INACTIVE
10:20:13.437 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd35c08e4, /127.0.0.1:40972 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.437 [nioEventLoopGroup-213-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-213-1
10:20:13.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.440 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd88e20ff, /127.0.0.1:40974 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.442 [nioEventLoopGroup-212-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:13.442 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd88e20ff, /127.0.0.1:40974 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.442 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd88e20ff, /127.0.0.1:40974 => /127.0.0.1:44989] FLUSH
10:20:13.442 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.442 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd88e20ff, /127.0.0.1:40974 => /127.0.0.1:44989] FLUSH
10:20:13.442 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd88e20ff, /127.0.0.1:40974 :> /127.0.0.1:44989] INACTIVE
10:20:13.443 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd88e20ff, /127.0.0.1:40974 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.443 [nioEventLoopGroup-214-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-214-1
10:20:13.444 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.446 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26d32c5c, /127.0.0.1:40976 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.447 [nioEventLoopGroup-212-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:13.448 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26d32c5c, /127.0.0.1:40976 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.448 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26d32c5c, /127.0.0.1:40976 => /127.0.0.1:44989] FLUSH
10:20:13.448 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26d32c5c, /127.0.0.1:40976 => /127.0.0.1:44989] FLUSH
10:20:13.448 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.448 [nioEventLoopGroup-215-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-215-1
10:20:13.448 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26d32c5c, /127.0.0.1:40976 :> /127.0.0.1:44989] INACTIVE
10:20:13.448 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26d32c5c, /127.0.0.1:40976 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.451 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.453 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae08397c, /127.0.0.1:40978 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.454 [nioEventLoopGroup-212-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:13.454 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae08397c, /127.0.0.1:40978 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.454 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae08397c, /127.0.0.1:40978 => /127.0.0.1:44989] FLUSH
10:20:13.455 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.455 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae08397c, /127.0.0.1:40978 => /127.0.0.1:44989] FLUSH
10:20:13.455 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae08397c, /127.0.0.1:40978 :> /127.0.0.1:44989] INACTIVE
10:20:13.455 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae08397c, /127.0.0.1:40978 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.455 [nioEventLoopGroup-216-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-216-1
10:20:13.456 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.458 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x677d6a3d, /127.0.0.1:40980 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.459 [nioEventLoopGroup-212-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:13.459 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x677d6a3d, /127.0.0.1:40980 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.459 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x677d6a3d, /127.0.0.1:40980 => /127.0.0.1:44989] FLUSH
10:20:13.460 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x677d6a3d, /127.0.0.1:40980 => /127.0.0.1:44989] FLUSH
10:20:13.460 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x677d6a3d, /127.0.0.1:40980 :> /127.0.0.1:44989] INACTIVE
10:20:13.460 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x677d6a3d, /127.0.0.1:40980 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.460 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.460 [nioEventLoopGroup-217-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-217-1
10:20:13.461 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.464 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x058b055f, /127.0.0.1:40982 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.465 [nioEventLoopGroup-212-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:13.465 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x058b055f, /127.0.0.1:40982 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.465 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x058b055f, /127.0.0.1:40982 => /127.0.0.1:44989] FLUSH
10:20:13.466 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.466 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x058b055f, /127.0.0.1:40982 => /127.0.0.1:44989] FLUSH
10:20:13.466 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x058b055f, /127.0.0.1:40982 :> /127.0.0.1:44989] INACTIVE
10:20:13.466 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x058b055f, /127.0.0.1:40982 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.466 [nioEventLoopGroup-218-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-218-1
10:20:13.467 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.469 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2550afb5, /127.0.0.1:40984 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.470 [nioEventLoopGroup-212-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:13.470 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2550afb5, /127.0.0.1:40984 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.470 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2550afb5, /127.0.0.1:40984 => /127.0.0.1:44989] FLUSH
10:20:13.470 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.470 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2550afb5, /127.0.0.1:40984 => /127.0.0.1:44989] FLUSH
10:20:13.470 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2550afb5, /127.0.0.1:40984 :> /127.0.0.1:44989] INACTIVE
10:20:13.470 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2550afb5, /127.0.0.1:40984 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.470 [nioEventLoopGroup-219-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-219-1
10:20:13.471 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.473 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb12c009c, /127.0.0.1:40986 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.474 [nioEventLoopGroup-212-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:13.474 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb12c009c, /127.0.0.1:40986 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.474 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb12c009c, /127.0.0.1:40986 => /127.0.0.1:44989] FLUSH
10:20:13.474 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.474 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb12c009c, /127.0.0.1:40986 => /127.0.0.1:44989] FLUSH
10:20:13.475 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb12c009c, /127.0.0.1:40986 :> /127.0.0.1:44989] INACTIVE
10:20:13.475 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb12c009c, /127.0.0.1:40986 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.475 [nioEventLoopGroup-220-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-220-1
10:20:13.475 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.477 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82d3e475, /127.0.0.1:40988 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.478 [nioEventLoopGroup-212-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:13.478 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82d3e475, /127.0.0.1:40988 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.478 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82d3e475, /127.0.0.1:40988 => /127.0.0.1:44989] FLUSH
10:20:13.479 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.479 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82d3e475, /127.0.0.1:40988 => /127.0.0.1:44989] FLUSH
10:20:13.479 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82d3e475, /127.0.0.1:40988 :> /127.0.0.1:44989] INACTIVE
10:20:13.479 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82d3e475, /127.0.0.1:40988 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.479 [nioEventLoopGroup-221-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-221-1
10:20:13.480 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.482 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f8b123, /127.0.0.1:40990 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.482 [nioEventLoopGroup-212-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:13.483 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f8b123, /127.0.0.1:40990 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.483 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f8b123, /127.0.0.1:40990 => /127.0.0.1:44989] FLUSH
10:20:13.483 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.483 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f8b123, /127.0.0.1:40990 => /127.0.0.1:44989] FLUSH
10:20:13.483 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f8b123, /127.0.0.1:40990 :> /127.0.0.1:44989] INACTIVE
10:20:13.483 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f8b123, /127.0.0.1:40990 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.483 [nioEventLoopGroup-222-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-222-1
10:20:13.484 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.486 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd925c3ec, /127.0.0.1:40992 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.487 [nioEventLoopGroup-212-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:13.487 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd925c3ec, /127.0.0.1:40992 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.487 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd925c3ec, /127.0.0.1:40992 => /127.0.0.1:44989] FLUSH
10:20:13.488 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.488 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd925c3ec, /127.0.0.1:40992 => /127.0.0.1:44989] FLUSH
10:20:13.488 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd925c3ec, /127.0.0.1:40992 :> /127.0.0.1:44989] INACTIVE
10:20:13.488 [nioEventLoopGroup-223-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-223-1
10:20:13.488 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd925c3ec, /127.0.0.1:40992 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.489 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.491 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfac1c52e, /127.0.0.1:40994 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.492 [nioEventLoopGroup-212-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:13.492 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfac1c52e, /127.0.0.1:40994 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.492 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfac1c52e, /127.0.0.1:40994 => /127.0.0.1:44989] FLUSH
10:20:13.492 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.492 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfac1c52e, /127.0.0.1:40994 => /127.0.0.1:44989] FLUSH
10:20:13.492 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfac1c52e, /127.0.0.1:40994 :> /127.0.0.1:44989] INACTIVE
10:20:13.492 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfac1c52e, /127.0.0.1:40994 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.492 [nioEventLoopGroup-224-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-224-1
10:20:13.493 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.495 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fb95b8, /127.0.0.1:40996 => /127.0.0.1:44989] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.496 [nioEventLoopGroup-212-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:13.496 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fb95b8, /127.0.0.1:40996 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.496 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fb95b8, /127.0.0.1:40996 => /127.0.0.1:44989] FLUSH
10:20:13.497 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fb95b8, /127.0.0.1:40996 => /127.0.0.1:44989] FLUSH
10:20:13.497 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.497 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fb95b8, /127.0.0.1:40996 :> /127.0.0.1:44989] INACTIVE
10:20:13.497 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7fb95b8, /127.0.0.1:40996 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.497 [nioEventLoopGroup-225-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-225-1
10:20:13.500 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264942d9, /127.0.0.1:40998 => /127.0.0.1:44989] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44989
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:13.501 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.501 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.501 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:13.502 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.502 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.502 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.502 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.503 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.503 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:13.503 [nioEventLoopGroup-212-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:13.503 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264942d9, /127.0.0.1:40998 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.503 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264942d9, /127.0.0.1:40998 => /127.0.0.1:44989] FLUSH
10:20:13.505 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264942d9, /127.0.0.1:40998 => /127.0.0.1:44989] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44989
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:13.505 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.505 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.505 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:13.506 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.506 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.506 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.506 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.506 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.507 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:13.507 [nioEventLoopGroup-212-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44989" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:13.507 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264942d9, /127.0.0.1:40998 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.507 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264942d9, /127.0.0.1:40998 => /127.0.0.1:44989] FLUSH
10:20:13.508 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:13.510 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabee7959, /127.0.0.1:41000 => /127.0.0.1:44989] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44989
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.510 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabee7959, /127.0.0.1:41000 => /127.0.0.1:44989] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.510 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabee7959, /127.0.0.1:41000 => /127.0.0.1:44989] FLUSH
10:20:13.510 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabee7959, /127.0.0.1:41000 => /127.0.0.1:44989] CLOSE()
10:20:13.510 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.510 [nioEventLoopGroup-226-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-226-1
10:20:13.512 [nioEventLoopGroup-212-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-1
10:20:13.512 [nioEventLoopGroup-212-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-2
10:20:13.512 [nioEventLoopGroup-212-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-9
10:20:13.512 [nioEventLoopGroup-212-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-10
10:20:13.512 [nioEventLoopGroup-212-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-4
10:20:13.512 [nioEventLoopGroup-212-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-13
10:20:13.512 [nioEventLoopGroup-212-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-3
10:20:13.512 [nioEventLoopGroup-212-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-5
10:20:13.512 [nioEventLoopGroup-212-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-6
10:20:13.512 [nioEventLoopGroup-212-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-7
10:20:13.512 [nioEventLoopGroup-212-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-8
10:20:13.512 [nioEventLoopGroup-212-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-11
10:20:13.512 [nioEventLoopGroup-212-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-12
10:20:13.512 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264942d9, /127.0.0.1:40998 :> /127.0.0.1:44989] INACTIVE
10:20:13.512 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x264942d9, /127.0.0.1:40998 :> /127.0.0.1:44989] UNREGISTERED
10:20:13.575 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec97e7, /127.0.0.1:34030 :> /127.0.0.1:46769] FLUSH
10:20:13.575 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec97e7, /127.0.0.1:34030 :> /127.0.0.1:46769] INACTIVE
10:20:13.576 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ec97e7, /127.0.0.1:34030 :> /127.0.0.1:46769] UNREGISTERED
10:20:13.576 [nioEventLoopGroup-196-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-15
10:20:13.622 [nioEventLoopGroup-180-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-14
10:20:13.622 [nioEventLoopGroup-180-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-15
10:20:13.878 [MockServer thread for port: 37698] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 37698
10:20:13.879 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.882 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x154c0ea8, /127.0.0.1:39050 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.883 [nioEventLoopGroup-228-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:13.883 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x154c0ea8, /127.0.0.1:39050 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.883 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x154c0ea8, /127.0.0.1:39050 => /127.0.0.1:37698] FLUSH
10:20:13.884 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x154c0ea8, /127.0.0.1:39050 => /127.0.0.1:37698] FLUSH
10:20:13.884 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x154c0ea8, /127.0.0.1:39050 :> /127.0.0.1:37698] INACTIVE
10:20:13.884 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x154c0ea8, /127.0.0.1:39050 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.884 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.885 [nioEventLoopGroup-229-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-229-1
10:20:13.885 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.888 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d289c11, /127.0.0.1:39052 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.889 [nioEventLoopGroup-228-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:13.889 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d289c11, /127.0.0.1:39052 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.890 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d289c11, /127.0.0.1:39052 => /127.0.0.1:37698] FLUSH
10:20:13.890 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.890 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d289c11, /127.0.0.1:39052 => /127.0.0.1:37698] FLUSH
10:20:13.890 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d289c11, /127.0.0.1:39052 :> /127.0.0.1:37698] INACTIVE
10:20:13.890 [nioEventLoopGroup-230-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-230-1
10:20:13.890 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d289c11, /127.0.0.1:39052 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.891 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.895 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257b00b7, /127.0.0.1:39054 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.896 [nioEventLoopGroup-228-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:13.896 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257b00b7, /127.0.0.1:39054 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.896 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257b00b7, /127.0.0.1:39054 => /127.0.0.1:37698] FLUSH
10:20:13.897 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.897 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257b00b7, /127.0.0.1:39054 => /127.0.0.1:37698] FLUSH
10:20:13.897 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257b00b7, /127.0.0.1:39054 :> /127.0.0.1:37698] INACTIVE
10:20:13.897 [nioEventLoopGroup-231-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-231-1
10:20:13.897 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x257b00b7, /127.0.0.1:39054 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.900 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.902 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba7016bf, /127.0.0.1:39056 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.903 [nioEventLoopGroup-228-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:13.903 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba7016bf, /127.0.0.1:39056 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.903 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba7016bf, /127.0.0.1:39056 => /127.0.0.1:37698] FLUSH
10:20:13.903 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.903 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba7016bf, /127.0.0.1:39056 => /127.0.0.1:37698] FLUSH
10:20:13.904 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba7016bf, /127.0.0.1:39056 :> /127.0.0.1:37698] INACTIVE
10:20:13.904 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba7016bf, /127.0.0.1:39056 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.904 [nioEventLoopGroup-232-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-232-1
10:20:13.904 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.906 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x528c81fa, /127.0.0.1:39058 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.907 [nioEventLoopGroup-228-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:13.907 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x528c81fa, /127.0.0.1:39058 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.907 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x528c81fa, /127.0.0.1:39058 => /127.0.0.1:37698] FLUSH
10:20:13.908 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.908 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x528c81fa, /127.0.0.1:39058 => /127.0.0.1:37698] FLUSH
10:20:13.908 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x528c81fa, /127.0.0.1:39058 :> /127.0.0.1:37698] INACTIVE
10:20:13.908 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x528c81fa, /127.0.0.1:39058 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.908 [nioEventLoopGroup-233-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-233-1
10:20:13.910 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.913 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf786cec7, /127.0.0.1:39060 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.914 [nioEventLoopGroup-228-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:13.914 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf786cec7, /127.0.0.1:39060 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.914 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf786cec7, /127.0.0.1:39060 => /127.0.0.1:37698] FLUSH
10:20:13.914 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.914 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf786cec7, /127.0.0.1:39060 => /127.0.0.1:37698] FLUSH
10:20:13.915 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf786cec7, /127.0.0.1:39060 :> /127.0.0.1:37698] INACTIVE
10:20:13.915 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf786cec7, /127.0.0.1:39060 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.915 [nioEventLoopGroup-234-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-234-1
10:20:13.919 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.921 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x003ef211, /127.0.0.1:39062 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.922 [nioEventLoopGroup-228-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:13.922 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x003ef211, /127.0.0.1:39062 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.923 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x003ef211, /127.0.0.1:39062 => /127.0.0.1:37698] FLUSH
10:20:13.923 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x003ef211, /127.0.0.1:39062 => /127.0.0.1:37698] FLUSH
10:20:13.923 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.923 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x003ef211, /127.0.0.1:39062 :> /127.0.0.1:37698] INACTIVE
10:20:13.923 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x003ef211, /127.0.0.1:39062 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.923 [nioEventLoopGroup-235-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-235-1
10:20:13.924 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.926 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x946dc034, /127.0.0.1:39064 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.927 [nioEventLoopGroup-228-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:13.927 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x946dc034, /127.0.0.1:39064 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.927 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x946dc034, /127.0.0.1:39064 => /127.0.0.1:37698] FLUSH
10:20:13.927 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.927 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x946dc034, /127.0.0.1:39064 => /127.0.0.1:37698] FLUSH
10:20:13.927 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x946dc034, /127.0.0.1:39064 :> /127.0.0.1:37698] INACTIVE
10:20:13.927 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x946dc034, /127.0.0.1:39064 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.927 [nioEventLoopGroup-236-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-236-1
10:20:13.928 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.930 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x864d99ce, /127.0.0.1:39066 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.931 [nioEventLoopGroup-228-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:13.931 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x864d99ce, /127.0.0.1:39066 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.931 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x864d99ce, /127.0.0.1:39066 => /127.0.0.1:37698] FLUSH
10:20:13.932 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.932 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x864d99ce, /127.0.0.1:39066 => /127.0.0.1:37698] FLUSH
10:20:13.932 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x864d99ce, /127.0.0.1:39066 :> /127.0.0.1:37698] INACTIVE
10:20:13.932 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x864d99ce, /127.0.0.1:39066 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.932 [nioEventLoopGroup-237-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-237-1
10:20:13.933 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.936 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x087578c5, /127.0.0.1:39068 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.937 [nioEventLoopGroup-228-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:13.937 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x087578c5, /127.0.0.1:39068 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.937 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x087578c5, /127.0.0.1:39068 => /127.0.0.1:37698] FLUSH
10:20:13.937 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x087578c5, /127.0.0.1:39068 => /127.0.0.1:37698] FLUSH
10:20:13.937 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.937 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x087578c5, /127.0.0.1:39068 :> /127.0.0.1:37698] INACTIVE
10:20:13.937 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x087578c5, /127.0.0.1:39068 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.937 [nioEventLoopGroup-238-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-238-1
10:20:13.938 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.952 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03ff8508, /127.0.0.1:39070 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.953 [nioEventLoopGroup-228-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:13.953 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03ff8508, /127.0.0.1:39070 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.953 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03ff8508, /127.0.0.1:39070 => /127.0.0.1:37698] FLUSH
10:20:13.953 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.954 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03ff8508, /127.0.0.1:39070 => /127.0.0.1:37698] FLUSH
10:20:13.954 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03ff8508, /127.0.0.1:39070 :> /127.0.0.1:37698] INACTIVE
10:20:13.954 [nioEventLoopGroup-239-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-239-1
10:20:13.954 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03ff8508, /127.0.0.1:39070 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.955 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.957 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebd7b7dd, /127.0.0.1:39072 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.958 [nioEventLoopGroup-228-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:13.958 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebd7b7dd, /127.0.0.1:39072 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.958 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebd7b7dd, /127.0.0.1:39072 => /127.0.0.1:37698] FLUSH
10:20:13.958 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebd7b7dd, /127.0.0.1:39072 => /127.0.0.1:37698] FLUSH
10:20:13.958 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.958 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebd7b7dd, /127.0.0.1:39072 :> /127.0.0.1:37698] INACTIVE
10:20:13.958 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebd7b7dd, /127.0.0.1:39072 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.959 [nioEventLoopGroup-240-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-240-1
10:20:13.961 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:13.964 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6be9a5af, /127.0.0.1:39074 => /127.0.0.1:37698] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:13.964 [nioEventLoopGroup-228-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:13.965 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6be9a5af, /127.0.0.1:39074 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.965 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6be9a5af, /127.0.0.1:39074 => /127.0.0.1:37698] FLUSH
10:20:13.965 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6be9a5af, /127.0.0.1:39074 => /127.0.0.1:37698] FLUSH
10:20:13.965 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.965 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6be9a5af, /127.0.0.1:39074 :> /127.0.0.1:37698] INACTIVE
10:20:13.965 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6be9a5af, /127.0.0.1:39074 :> /127.0.0.1:37698] UNREGISTERED
10:20:13.965 [nioEventLoopGroup-241-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-241-1
10:20:13.968 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x973699be, /127.0.0.1:39076 => /127.0.0.1:37698] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:37698
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:13.968 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.969 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.969 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:13.969 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.969 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.969 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.970 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.970 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.970 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.970 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:13.971 [nioEventLoopGroup-228-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:13.971 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x973699be, /127.0.0.1:39076 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.971 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x973699be, /127.0.0.1:39076 => /127.0.0.1:37698] FLUSH
10:20:13.973 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x973699be, /127.0.0.1:39076 => /127.0.0.1:37698] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:37698
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:13.973 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.974 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.974 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:13.975 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.975 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.975 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.976 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.976 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.976 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:13.976 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:13.976 [nioEventLoopGroup-228-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:37698" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:13.977 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x973699be, /127.0.0.1:39076 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.977 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x973699be, /127.0.0.1:39076 => /127.0.0.1:37698] FLUSH
10:20:13.977 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:13.979 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa479421, /127.0.0.1:39078 => /127.0.0.1:37698] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:37698
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:13.980 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa479421, /127.0.0.1:39078 => /127.0.0.1:37698] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:13.980 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa479421, /127.0.0.1:39078 => /127.0.0.1:37698] FLUSH
10:20:13.980 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa479421, /127.0.0.1:39078 => /127.0.0.1:37698] CLOSE()
10:20:13.980 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:13.981 [nioEventLoopGroup-242-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-242-1
10:20:13.984 [nioEventLoopGroup-228-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-2
10:20:13.984 [nioEventLoopGroup-228-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-5
10:20:13.984 [nioEventLoopGroup-228-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-8
10:20:13.984 [nioEventLoopGroup-228-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-3
10:20:13.984 [nioEventLoopGroup-228-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-1
10:20:13.984 [nioEventLoopGroup-228-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-4
10:20:13.984 [nioEventLoopGroup-228-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-6
10:20:13.984 [nioEventLoopGroup-228-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-7
10:20:13.984 [nioEventLoopGroup-228-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-9
10:20:13.984 [nioEventLoopGroup-228-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-10
10:20:13.984 [nioEventLoopGroup-228-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-11
10:20:13.984 [nioEventLoopGroup-228-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-12
10:20:13.984 [nioEventLoopGroup-228-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-13
10:20:13.984 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x973699be, /127.0.0.1:39076 :> /127.0.0.1:37698] INACTIVE
10:20:13.985 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x973699be, /127.0.0.1:39076 :> /127.0.0.1:37698] UNREGISTERED
10:20:14.013 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabee7959, /127.0.0.1:41000 :> /127.0.0.1:44989] FLUSH
10:20:14.014 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabee7959, /127.0.0.1:41000 :> /127.0.0.1:44989] INACTIVE
10:20:14.014 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabee7959, /127.0.0.1:41000 :> /127.0.0.1:44989] UNREGISTERED
10:20:14.014 [nioEventLoopGroup-212-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-15
10:20:14.076 [nioEventLoopGroup-196-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-14
10:20:14.339 [MockServer thread for port: 38565] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 38565
10:20:14.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.343 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd94d5ec, /127.0.0.1:55980 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.344 [nioEventLoopGroup-244-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:14.344 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd94d5ec, /127.0.0.1:55980 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.344 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd94d5ec, /127.0.0.1:55980 => /127.0.0.1:38565] FLUSH
10:20:14.345 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd94d5ec, /127.0.0.1:55980 => /127.0.0.1:38565] FLUSH
10:20:14.345 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.345 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd94d5ec, /127.0.0.1:55980 :> /127.0.0.1:38565] INACTIVE
10:20:14.345 [nioEventLoopGroup-245-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-245-1
10:20:14.345 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd94d5ec, /127.0.0.1:55980 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.346 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.348 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1afc18a2, /127.0.0.1:55982 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.350 [nioEventLoopGroup-244-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:14.350 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1afc18a2, /127.0.0.1:55982 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.350 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1afc18a2, /127.0.0.1:55982 => /127.0.0.1:38565] FLUSH
10:20:14.350 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.350 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1afc18a2, /127.0.0.1:55982 => /127.0.0.1:38565] FLUSH
10:20:14.350 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1afc18a2, /127.0.0.1:55982 :> /127.0.0.1:38565] INACTIVE
10:20:14.350 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1afc18a2, /127.0.0.1:55982 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.350 [nioEventLoopGroup-246-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-246-1
10:20:14.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.354 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43340085, /127.0.0.1:55984 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.355 [nioEventLoopGroup-244-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:14.355 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43340085, /127.0.0.1:55984 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.355 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43340085, /127.0.0.1:55984 => /127.0.0.1:38565] FLUSH
10:20:14.355 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.355 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43340085, /127.0.0.1:55984 => /127.0.0.1:38565] FLUSH
10:20:14.355 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43340085, /127.0.0.1:55984 :> /127.0.0.1:38565] INACTIVE
10:20:14.355 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x43340085, /127.0.0.1:55984 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.355 [nioEventLoopGroup-247-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-247-1
10:20:14.356 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.358 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cd8b21e, /127.0.0.1:55986 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.359 [nioEventLoopGroup-244-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:14.359 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cd8b21e, /127.0.0.1:55986 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.359 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cd8b21e, /127.0.0.1:55986 => /127.0.0.1:38565] FLUSH
10:20:14.360 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.360 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cd8b21e, /127.0.0.1:55986 => /127.0.0.1:38565] FLUSH
10:20:14.360 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cd8b21e, /127.0.0.1:55986 :> /127.0.0.1:38565] INACTIVE
10:20:14.360 [nioEventLoopGroup-248-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-248-1
10:20:14.360 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5cd8b21e, /127.0.0.1:55986 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.362 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.364 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d964606, /127.0.0.1:55988 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.365 [nioEventLoopGroup-244-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:14.365 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d964606, /127.0.0.1:55988 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.365 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d964606, /127.0.0.1:55988 => /127.0.0.1:38565] FLUSH
10:20:14.365 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.366 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d964606, /127.0.0.1:55988 => /127.0.0.1:38565] FLUSH
10:20:14.366 [nioEventLoopGroup-249-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-249-1
10:20:14.366 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d964606, /127.0.0.1:55988 :> /127.0.0.1:38565] INACTIVE
10:20:14.366 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d964606, /127.0.0.1:55988 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.367 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.369 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620bee60, /127.0.0.1:55990 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.370 [nioEventLoopGroup-244-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:14.371 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620bee60, /127.0.0.1:55990 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.371 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620bee60, /127.0.0.1:55990 => /127.0.0.1:38565] FLUSH
10:20:14.371 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.371 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620bee60, /127.0.0.1:55990 => /127.0.0.1:38565] FLUSH
10:20:14.371 [nioEventLoopGroup-250-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-250-1
10:20:14.371 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620bee60, /127.0.0.1:55990 :> /127.0.0.1:38565] INACTIVE
10:20:14.371 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x620bee60, /127.0.0.1:55990 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.374 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.376 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73944d4, /127.0.0.1:55992 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.377 [nioEventLoopGroup-244-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:14.377 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73944d4, /127.0.0.1:55992 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.377 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73944d4, /127.0.0.1:55992 => /127.0.0.1:38565] FLUSH
10:20:14.377 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.377 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73944d4, /127.0.0.1:55992 => /127.0.0.1:38565] FLUSH
10:20:14.378 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73944d4, /127.0.0.1:55992 :> /127.0.0.1:38565] INACTIVE
10:20:14.378 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73944d4, /127.0.0.1:55992 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.378 [nioEventLoopGroup-251-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-251-1
10:20:14.378 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.380 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e0b15d0, /127.0.0.1:55994 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.381 [nioEventLoopGroup-244-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:14.381 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e0b15d0, /127.0.0.1:55994 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.381 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e0b15d0, /127.0.0.1:55994 => /127.0.0.1:38565] FLUSH
10:20:14.381 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.382 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e0b15d0, /127.0.0.1:55994 => /127.0.0.1:38565] FLUSH
10:20:14.382 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e0b15d0, /127.0.0.1:55994 :> /127.0.0.1:38565] INACTIVE
10:20:14.382 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e0b15d0, /127.0.0.1:55994 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.383 [nioEventLoopGroup-252-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-252-1
10:20:14.383 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.385 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e973f18, /127.0.0.1:55996 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.386 [nioEventLoopGroup-244-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:14.386 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e973f18, /127.0.0.1:55996 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.386 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e973f18, /127.0.0.1:55996 => /127.0.0.1:38565] FLUSH
10:20:14.386 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.386 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e973f18, /127.0.0.1:55996 => /127.0.0.1:38565] FLUSH
10:20:14.387 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e973f18, /127.0.0.1:55996 :> /127.0.0.1:38565] INACTIVE
10:20:14.387 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e973f18, /127.0.0.1:55996 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.387 [nioEventLoopGroup-253-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-253-1
10:20:14.387 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.390 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41c87ae2, /127.0.0.1:55998 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.390 [nioEventLoopGroup-244-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:14.390 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41c87ae2, /127.0.0.1:55998 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.390 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41c87ae2, /127.0.0.1:55998 => /127.0.0.1:38565] FLUSH
10:20:14.391 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.391 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41c87ae2, /127.0.0.1:55998 => /127.0.0.1:38565] FLUSH
10:20:14.391 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41c87ae2, /127.0.0.1:55998 :> /127.0.0.1:38565] INACTIVE
10:20:14.391 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41c87ae2, /127.0.0.1:55998 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.391 [nioEventLoopGroup-254-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-254-1
10:20:14.392 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.394 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca10061b, /127.0.0.1:56000 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.394 [nioEventLoopGroup-244-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:14.394 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca10061b, /127.0.0.1:56000 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.394 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca10061b, /127.0.0.1:56000 => /127.0.0.1:38565] FLUSH
10:20:14.395 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.395 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca10061b, /127.0.0.1:56000 => /127.0.0.1:38565] FLUSH
10:20:14.395 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca10061b, /127.0.0.1:56000 :> /127.0.0.1:38565] INACTIVE
10:20:14.395 [nioEventLoopGroup-255-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-255-1
10:20:14.395 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca10061b, /127.0.0.1:56000 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.396 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.398 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eed4787, /127.0.0.1:56002 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.399 [nioEventLoopGroup-244-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:14.399 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eed4787, /127.0.0.1:56002 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.400 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eed4787, /127.0.0.1:56002 => /127.0.0.1:38565] FLUSH
10:20:14.400 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.400 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eed4787, /127.0.0.1:56002 => /127.0.0.1:38565] FLUSH
10:20:14.400 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eed4787, /127.0.0.1:56002 :> /127.0.0.1:38565] INACTIVE
10:20:14.400 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eed4787, /127.0.0.1:56002 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.400 [nioEventLoopGroup-256-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-256-1
10:20:14.401 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.403 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8824c6d6, /127.0.0.1:56004 => /127.0.0.1:38565] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.404 [nioEventLoopGroup-244-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:14.404 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8824c6d6, /127.0.0.1:56004 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.404 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8824c6d6, /127.0.0.1:56004 => /127.0.0.1:38565] FLUSH
10:20:14.405 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.405 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8824c6d6, /127.0.0.1:56004 => /127.0.0.1:38565] FLUSH
10:20:14.405 [nioEventLoopGroup-257-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-257-1
10:20:14.405 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8824c6d6, /127.0.0.1:56004 :> /127.0.0.1:38565] INACTIVE
10:20:14.405 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8824c6d6, /127.0.0.1:56004 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.408 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dde2de6, /127.0.0.1:56006 => /127.0.0.1:38565] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38565
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:14.409 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.409 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.409 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:14.410 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.410 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.410 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.410 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.411 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.411 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.411 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.412 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:14.412 [nioEventLoopGroup-244-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:14.412 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dde2de6, /127.0.0.1:56006 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:14.413 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dde2de6, /127.0.0.1:56006 => /127.0.0.1:38565] FLUSH
10:20:14.415 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dde2de6, /127.0.0.1:56006 => /127.0.0.1:38565] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38565
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:14.415 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.416 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.416 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:14.416 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.416 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.417 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.417 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.417 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.418 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.418 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.418 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:14.419 [nioEventLoopGroup-244-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38565" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:14.419 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dde2de6, /127.0.0.1:56006 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:14.419 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dde2de6, /127.0.0.1:56006 => /127.0.0.1:38565] FLUSH
10:20:14.419 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:14.422 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29cb8bc9, /127.0.0.1:56008 => /127.0.0.1:38565] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:38565
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:14.422 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29cb8bc9, /127.0.0.1:56008 => /127.0.0.1:38565] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.422 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29cb8bc9, /127.0.0.1:56008 => /127.0.0.1:38565] FLUSH
10:20:14.422 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29cb8bc9, /127.0.0.1:56008 => /127.0.0.1:38565] CLOSE()
10:20:14.423 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.423 [nioEventLoopGroup-258-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-258-1
10:20:14.428 [nioEventLoopGroup-244-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-2
10:20:14.428 [nioEventLoopGroup-244-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-1
10:20:14.428 [nioEventLoopGroup-244-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-4
10:20:14.428 [nioEventLoopGroup-244-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-9
10:20:14.428 [nioEventLoopGroup-244-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-6
10:20:14.428 [nioEventLoopGroup-244-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-13
10:20:14.428 [nioEventLoopGroup-244-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-7
10:20:14.428 [nioEventLoopGroup-244-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-3
10:20:14.428 [nioEventLoopGroup-244-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-11
10:20:14.428 [nioEventLoopGroup-244-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-5
10:20:14.428 [nioEventLoopGroup-244-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-12
10:20:14.428 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dde2de6, /127.0.0.1:56006 :> /127.0.0.1:38565] INACTIVE
10:20:14.428 [nioEventLoopGroup-244-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-8
10:20:14.428 [nioEventLoopGroup-244-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-10
10:20:14.428 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dde2de6, /127.0.0.1:56006 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.484 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa479421, /127.0.0.1:39078 :> /127.0.0.1:37698] FLUSH
10:20:14.484 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa479421, /127.0.0.1:39078 :> /127.0.0.1:37698] INACTIVE
10:20:14.484 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa479421, /127.0.0.1:39078 :> /127.0.0.1:37698] UNREGISTERED
10:20:14.485 [nioEventLoopGroup-228-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-15
10:20:14.513 [nioEventLoopGroup-212-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-14
10:20:14.782 [MockServer thread for port: 44277] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44277
10:20:14.782 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.785 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aeafbde, /127.0.0.1:41764 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.785 [nioEventLoopGroup-260-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:14.786 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aeafbde, /127.0.0.1:41764 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.786 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aeafbde, /127.0.0.1:41764 => /127.0.0.1:44277] FLUSH
10:20:14.786 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.786 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aeafbde, /127.0.0.1:41764 => /127.0.0.1:44277] FLUSH
10:20:14.786 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aeafbde, /127.0.0.1:41764 :> /127.0.0.1:44277] INACTIVE
10:20:14.786 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8aeafbde, /127.0.0.1:41764 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.786 [nioEventLoopGroup-261-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-261-1
10:20:14.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.790 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636a1344, /127.0.0.1:41766 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.791 [nioEventLoopGroup-260-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:14.791 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636a1344, /127.0.0.1:41766 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.791 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636a1344, /127.0.0.1:41766 => /127.0.0.1:44277] FLUSH
10:20:14.791 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636a1344, /127.0.0.1:41766 => /127.0.0.1:44277] FLUSH
10:20:14.791 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.792 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636a1344, /127.0.0.1:41766 :> /127.0.0.1:44277] INACTIVE
10:20:14.792 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x636a1344, /127.0.0.1:41766 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.792 [nioEventLoopGroup-262-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-262-1
10:20:14.793 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.795 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64131e83, /127.0.0.1:41768 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.796 [nioEventLoopGroup-260-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:14.796 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64131e83, /127.0.0.1:41768 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.796 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64131e83, /127.0.0.1:41768 => /127.0.0.1:44277] FLUSH
10:20:14.796 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.796 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64131e83, /127.0.0.1:41768 => /127.0.0.1:44277] FLUSH
10:20:14.796 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64131e83, /127.0.0.1:41768 :> /127.0.0.1:44277] INACTIVE
10:20:14.796 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64131e83, /127.0.0.1:41768 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.796 [nioEventLoopGroup-263-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-263-1
10:20:14.797 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.800 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a9f3f, /127.0.0.1:41770 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.800 [nioEventLoopGroup-260-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:14.800 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a9f3f, /127.0.0.1:41770 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.801 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a9f3f, /127.0.0.1:41770 => /127.0.0.1:44277] FLUSH
10:20:14.801 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.801 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a9f3f, /127.0.0.1:41770 => /127.0.0.1:44277] FLUSH
10:20:14.801 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a9f3f, /127.0.0.1:41770 :> /127.0.0.1:44277] INACTIVE
10:20:14.801 [nioEventLoopGroup-264-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-264-1
10:20:14.801 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a9f3f, /127.0.0.1:41770 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.802 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.804 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ea1eb9, /127.0.0.1:41772 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.805 [nioEventLoopGroup-260-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:14.805 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ea1eb9, /127.0.0.1:41772 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.805 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ea1eb9, /127.0.0.1:41772 => /127.0.0.1:44277] FLUSH
10:20:14.805 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.805 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ea1eb9, /127.0.0.1:41772 => /127.0.0.1:44277] FLUSH
10:20:14.805 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ea1eb9, /127.0.0.1:41772 :> /127.0.0.1:44277] INACTIVE
10:20:14.805 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26ea1eb9, /127.0.0.1:41772 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.805 [nioEventLoopGroup-265-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-265-1
10:20:14.806 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.809 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed0d050, /127.0.0.1:41774 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.809 [nioEventLoopGroup-260-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:14.810 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed0d050, /127.0.0.1:41774 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.810 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed0d050, /127.0.0.1:41774 => /127.0.0.1:44277] FLUSH
10:20:14.810 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.810 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed0d050, /127.0.0.1:41774 => /127.0.0.1:44277] FLUSH
10:20:14.810 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed0d050, /127.0.0.1:41774 :> /127.0.0.1:44277] INACTIVE
10:20:14.810 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed0d050, /127.0.0.1:41774 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.810 [nioEventLoopGroup-266-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-266-1
10:20:14.811 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.814 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672b876b, /127.0.0.1:41776 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.814 [nioEventLoopGroup-260-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:14.815 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672b876b, /127.0.0.1:41776 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.815 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672b876b, /127.0.0.1:41776 => /127.0.0.1:44277] FLUSH
10:20:14.815 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.815 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672b876b, /127.0.0.1:41776 => /127.0.0.1:44277] FLUSH
10:20:14.815 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672b876b, /127.0.0.1:41776 :> /127.0.0.1:44277] INACTIVE
10:20:14.815 [nioEventLoopGroup-267-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-267-1
10:20:14.815 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672b876b, /127.0.0.1:41776 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.816 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.819 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb19f56d3, /127.0.0.1:41778 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.819 [nioEventLoopGroup-260-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:14.819 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb19f56d3, /127.0.0.1:41778 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.820 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb19f56d3, /127.0.0.1:41778 => /127.0.0.1:44277] FLUSH
10:20:14.820 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.820 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb19f56d3, /127.0.0.1:41778 => /127.0.0.1:44277] FLUSH
10:20:14.820 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb19f56d3, /127.0.0.1:41778 :> /127.0.0.1:44277] INACTIVE
10:20:14.820 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb19f56d3, /127.0.0.1:41778 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.820 [nioEventLoopGroup-268-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-268-1
10:20:14.821 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.823 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf17abfff, /127.0.0.1:41780 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.824 [nioEventLoopGroup-260-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:14.824 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf17abfff, /127.0.0.1:41780 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.824 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf17abfff, /127.0.0.1:41780 => /127.0.0.1:44277] FLUSH
10:20:14.824 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.824 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf17abfff, /127.0.0.1:41780 => /127.0.0.1:44277] FLUSH
10:20:14.825 [nioEventLoopGroup-269-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-269-1
10:20:14.825 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf17abfff, /127.0.0.1:41780 :> /127.0.0.1:44277] INACTIVE
10:20:14.825 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf17abfff, /127.0.0.1:41780 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.826 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.828 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x346702f4, /127.0.0.1:41782 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.829 [nioEventLoopGroup-260-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:14.829 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x346702f4, /127.0.0.1:41782 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.829 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x346702f4, /127.0.0.1:41782 => /127.0.0.1:44277] FLUSH
10:20:14.830 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.830 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x346702f4, /127.0.0.1:41782 => /127.0.0.1:44277] FLUSH
10:20:14.830 [nioEventLoopGroup-270-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-270-1
10:20:14.830 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x346702f4, /127.0.0.1:41782 :> /127.0.0.1:44277] INACTIVE
10:20:14.830 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x346702f4, /127.0.0.1:41782 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.835 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.837 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef1c7394, /127.0.0.1:41784 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.838 [nioEventLoopGroup-260-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:14.838 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef1c7394, /127.0.0.1:41784 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.838 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef1c7394, /127.0.0.1:41784 => /127.0.0.1:44277] FLUSH
10:20:14.838 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.838 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef1c7394, /127.0.0.1:41784 => /127.0.0.1:44277] FLUSH
10:20:14.838 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef1c7394, /127.0.0.1:41784 :> /127.0.0.1:44277] INACTIVE
10:20:14.838 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef1c7394, /127.0.0.1:41784 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.838 [nioEventLoopGroup-271-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-271-1
10:20:14.839 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.842 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eeac798, /127.0.0.1:41786 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.843 [nioEventLoopGroup-260-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:14.843 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eeac798, /127.0.0.1:41786 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.843 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eeac798, /127.0.0.1:41786 => /127.0.0.1:44277] FLUSH
10:20:14.844 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.844 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eeac798, /127.0.0.1:41786 => /127.0.0.1:44277] FLUSH
10:20:14.844 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eeac798, /127.0.0.1:41786 :> /127.0.0.1:44277] INACTIVE
10:20:14.844 [nioEventLoopGroup-272-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-272-1
10:20:14.847 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8eeac798, /127.0.0.1:41786 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.848 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:14.850 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e48a88b, /127.0.0.1:41788 => /127.0.0.1:44277] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:14.851 [nioEventLoopGroup-260-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:14.851 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e48a88b, /127.0.0.1:41788 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.851 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e48a88b, /127.0.0.1:41788 => /127.0.0.1:44277] FLUSH
10:20:14.852 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.852 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e48a88b, /127.0.0.1:41788 => /127.0.0.1:44277] FLUSH
10:20:14.852 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e48a88b, /127.0.0.1:41788 :> /127.0.0.1:44277] INACTIVE
10:20:14.852 [nioEventLoopGroup-273-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-273-1
10:20:14.852 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e48a88b, /127.0.0.1:41788 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.860 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8766877d, /127.0.0.1:41790 => /127.0.0.1:44277] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:44277
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:14.860 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.861 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.861 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:14.861 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.861 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.862 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.862 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.862 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:14.862 [nioEventLoopGroup-260-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:14.862 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8766877d, /127.0.0.1:41790 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:14.862 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8766877d, /127.0.0.1:41790 => /127.0.0.1:44277] FLUSH
10:20:14.869 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d084c49, /127.0.0.1:41792 => /127.0.0.1:44277] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:44277
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:14.869 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.870 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.870 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:14.870 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.871 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.871 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.872 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:14.872 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:14.873 [nioEventLoopGroup-260-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44277" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:14.873 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d084c49, /127.0.0.1:41792 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:14.873 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d084c49, /127.0.0.1:41792 => /127.0.0.1:44277] FLUSH
10:20:14.874 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:14.877 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe863109f, /127.0.0.1:41794 => /127.0.0.1:44277] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44277
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:14.878 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe863109f, /127.0.0.1:41794 => /127.0.0.1:44277] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:14.878 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe863109f, /127.0.0.1:41794 => /127.0.0.1:44277] FLUSH
10:20:14.878 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe863109f, /127.0.0.1:41794 => /127.0.0.1:44277] CLOSE()
10:20:14.878 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:14.878 [nioEventLoopGroup-274-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-274-1
10:20:14.888 [nioEventLoopGroup-260-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-9
10:20:14.888 [nioEventLoopGroup-260-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-6
10:20:14.888 [nioEventLoopGroup-260-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-1
10:20:14.888 [nioEventLoopGroup-260-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-2
10:20:14.888 [nioEventLoopGroup-260-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-7
10:20:14.888 [nioEventLoopGroup-260-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-3
10:20:14.888 [nioEventLoopGroup-260-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-10
10:20:14.888 [nioEventLoopGroup-260-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-4
10:20:14.888 [nioEventLoopGroup-260-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-5
10:20:14.888 [nioEventLoopGroup-260-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-12
10:20:14.888 [nioEventLoopGroup-260-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-8
10:20:14.888 [nioEventLoopGroup-260-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-11
10:20:14.888 [nioEventLoopGroup-260-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-13
10:20:14.888 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8766877d, /127.0.0.1:41790 :> /127.0.0.1:44277] INACTIVE
10:20:14.888 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d084c49, /127.0.0.1:41792 :> /127.0.0.1:44277] INACTIVE
10:20:14.889 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8766877d, /127.0.0.1:41790 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.889 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d084c49, /127.0.0.1:41792 :> /127.0.0.1:44277] UNREGISTERED
10:20:14.928 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29cb8bc9, /127.0.0.1:56008 :> /127.0.0.1:38565] FLUSH
10:20:14.928 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29cb8bc9, /127.0.0.1:56008 :> /127.0.0.1:38565] INACTIVE
10:20:14.928 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29cb8bc9, /127.0.0.1:56008 :> /127.0.0.1:38565] UNREGISTERED
10:20:14.928 [nioEventLoopGroup-244-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-15
10:20:14.986 [nioEventLoopGroup-228-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-14
10:20:15.240 [MockServer thread for port: 41336] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41336
10:20:15.241 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.243 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d5916da, /127.0.0.1:56918 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.244 [nioEventLoopGroup-276-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:15.244 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d5916da, /127.0.0.1:56918 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.244 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d5916da, /127.0.0.1:56918 => /127.0.0.1:41336] FLUSH
10:20:15.245 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.245 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d5916da, /127.0.0.1:56918 => /127.0.0.1:41336] FLUSH
10:20:15.245 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d5916da, /127.0.0.1:56918 :> /127.0.0.1:41336] INACTIVE
10:20:15.245 [nioEventLoopGroup-277-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-277-1
10:20:15.247 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d5916da, /127.0.0.1:56918 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.248 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.251 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bacd561, /127.0.0.1:56920 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.252 [nioEventLoopGroup-276-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:15.252 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bacd561, /127.0.0.1:56920 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.252 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bacd561, /127.0.0.1:56920 => /127.0.0.1:41336] FLUSH
10:20:15.253 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.253 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bacd561, /127.0.0.1:56920 => /127.0.0.1:41336] FLUSH
10:20:15.253 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bacd561, /127.0.0.1:56920 :> /127.0.0.1:41336] INACTIVE
10:20:15.253 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5bacd561, /127.0.0.1:56920 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.253 [nioEventLoopGroup-278-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-278-1
10:20:15.254 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.256 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebc3d4a, /127.0.0.1:56922 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.257 [nioEventLoopGroup-276-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:15.257 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebc3d4a, /127.0.0.1:56922 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.257 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebc3d4a, /127.0.0.1:56922 => /127.0.0.1:41336] FLUSH
10:20:15.257 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.257 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebc3d4a, /127.0.0.1:56922 => /127.0.0.1:41336] FLUSH
10:20:15.257 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebc3d4a, /127.0.0.1:56922 :> /127.0.0.1:41336] INACTIVE
10:20:15.258 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ebc3d4a, /127.0.0.1:56922 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.258 [nioEventLoopGroup-279-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-279-1
10:20:15.258 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.260 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5482833, /127.0.0.1:56924 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.261 [nioEventLoopGroup-276-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:15.261 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5482833, /127.0.0.1:56924 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.261 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5482833, /127.0.0.1:56924 => /127.0.0.1:41336] FLUSH
10:20:15.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.262 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5482833, /127.0.0.1:56924 => /127.0.0.1:41336] FLUSH
10:20:15.262 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5482833, /127.0.0.1:56924 :> /127.0.0.1:41336] INACTIVE
10:20:15.262 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5482833, /127.0.0.1:56924 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.262 [nioEventLoopGroup-280-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-280-1
10:20:15.263 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.265 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88389f98, /127.0.0.1:56926 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.266 [nioEventLoopGroup-276-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:15.266 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88389f98, /127.0.0.1:56926 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.266 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88389f98, /127.0.0.1:56926 => /127.0.0.1:41336] FLUSH
10:20:15.267 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88389f98, /127.0.0.1:56926 => /127.0.0.1:41336] FLUSH
10:20:15.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.267 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88389f98, /127.0.0.1:56926 :> /127.0.0.1:41336] INACTIVE
10:20:15.267 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88389f98, /127.0.0.1:56926 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.267 [nioEventLoopGroup-281-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-281-1
10:20:15.270 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.273 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea57b, /127.0.0.1:56928 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.273 [nioEventLoopGroup-276-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:15.274 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea57b, /127.0.0.1:56928 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.274 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea57b, /127.0.0.1:56928 => /127.0.0.1:41336] FLUSH
10:20:15.274 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.274 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea57b, /127.0.0.1:56928 => /127.0.0.1:41336] FLUSH
10:20:15.274 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea57b, /127.0.0.1:56928 :> /127.0.0.1:41336] INACTIVE
10:20:15.274 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea57b, /127.0.0.1:56928 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.274 [nioEventLoopGroup-282-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-282-1
10:20:15.275 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.277 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f91bf4b, /127.0.0.1:56930 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.278 [nioEventLoopGroup-276-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:15.278 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f91bf4b, /127.0.0.1:56930 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.278 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f91bf4b, /127.0.0.1:56930 => /127.0.0.1:41336] FLUSH
10:20:15.279 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f91bf4b, /127.0.0.1:56930 => /127.0.0.1:41336] FLUSH
10:20:15.279 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.279 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f91bf4b, /127.0.0.1:56930 :> /127.0.0.1:41336] INACTIVE
10:20:15.279 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f91bf4b, /127.0.0.1:56930 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.279 [nioEventLoopGroup-283-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-283-1
10:20:15.280 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.282 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40873468, /127.0.0.1:56932 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.282 [nioEventLoopGroup-276-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:15.283 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40873468, /127.0.0.1:56932 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.283 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40873468, /127.0.0.1:56932 => /127.0.0.1:41336] FLUSH
10:20:15.283 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.283 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40873468, /127.0.0.1:56932 => /127.0.0.1:41336] FLUSH
10:20:15.283 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40873468, /127.0.0.1:56932 :> /127.0.0.1:41336] INACTIVE
10:20:15.283 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40873468, /127.0.0.1:56932 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.283 [nioEventLoopGroup-284-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-284-1
10:20:15.284 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.286 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d57c6c6, /127.0.0.1:56934 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.287 [nioEventLoopGroup-276-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:15.288 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d57c6c6, /127.0.0.1:56934 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.288 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d57c6c6, /127.0.0.1:56934 => /127.0.0.1:41336] FLUSH
10:20:15.288 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.288 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d57c6c6, /127.0.0.1:56934 => /127.0.0.1:41336] FLUSH
10:20:15.288 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d57c6c6, /127.0.0.1:56934 :> /127.0.0.1:41336] INACTIVE
10:20:15.288 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d57c6c6, /127.0.0.1:56934 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.288 [nioEventLoopGroup-285-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-285-1
10:20:15.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.292 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x649aa369, /127.0.0.1:56936 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.293 [nioEventLoopGroup-276-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:15.293 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x649aa369, /127.0.0.1:56936 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.293 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x649aa369, /127.0.0.1:56936 => /127.0.0.1:41336] FLUSH
10:20:15.293 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.293 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x649aa369, /127.0.0.1:56936 => /127.0.0.1:41336] FLUSH
10:20:15.294 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x649aa369, /127.0.0.1:56936 :> /127.0.0.1:41336] INACTIVE
10:20:15.294 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x649aa369, /127.0.0.1:56936 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.294 [nioEventLoopGroup-286-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-286-1
10:20:15.294 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.296 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b2331df, /127.0.0.1:56938 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.297 [nioEventLoopGroup-276-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:15.297 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b2331df, /127.0.0.1:56938 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.297 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b2331df, /127.0.0.1:56938 => /127.0.0.1:41336] FLUSH
10:20:15.297 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.297 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b2331df, /127.0.0.1:56938 => /127.0.0.1:41336] FLUSH
10:20:15.298 [nioEventLoopGroup-287-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-287-1
10:20:15.298 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b2331df, /127.0.0.1:56938 :> /127.0.0.1:41336] INACTIVE
10:20:15.298 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b2331df, /127.0.0.1:56938 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.300 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a0194df, /127.0.0.1:56940 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.301 [nioEventLoopGroup-276-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:15.302 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a0194df, /127.0.0.1:56940 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.302 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a0194df, /127.0.0.1:56940 => /127.0.0.1:41336] FLUSH
10:20:15.302 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.302 [nioEventLoopGroup-288-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-288-1
10:20:15.302 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a0194df, /127.0.0.1:56940 => /127.0.0.1:41336] FLUSH
10:20:15.302 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a0194df, /127.0.0.1:56940 :> /127.0.0.1:41336] INACTIVE
10:20:15.303 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a0194df, /127.0.0.1:56940 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.303 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.317 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee89ebb1, /127.0.0.1:56942 => /127.0.0.1:41336] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.317 [nioEventLoopGroup-276-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:15.318 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee89ebb1, /127.0.0.1:56942 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.318 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee89ebb1, /127.0.0.1:56942 => /127.0.0.1:41336] FLUSH
10:20:15.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.318 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee89ebb1, /127.0.0.1:56942 => /127.0.0.1:41336] FLUSH
10:20:15.318 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee89ebb1, /127.0.0.1:56942 :> /127.0.0.1:41336] INACTIVE
10:20:15.318 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee89ebb1, /127.0.0.1:56942 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.318 [nioEventLoopGroup-289-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-289-1
10:20:15.323 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd880313, /127.0.0.1:56944 => /127.0.0.1:41336] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:41336
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:15.324 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.324 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.324 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:15.324 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.325 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.325 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.325 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.325 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.325 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:15.325 [nioEventLoopGroup-276-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:15.326 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd880313, /127.0.0.1:56944 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:15.326 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd880313, /127.0.0.1:56944 => /127.0.0.1:41336] FLUSH
10:20:15.330 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75e7f5b1, /127.0.0.1:56946 => /127.0.0.1:41336] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:41336
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:15.331 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.331 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.331 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:15.331 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.331 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.332 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.332 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.332 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.332 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:15.332 [nioEventLoopGroup-276-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41336" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:15.332 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75e7f5b1, /127.0.0.1:56946 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:15.333 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75e7f5b1, /127.0.0.1:56946 => /127.0.0.1:41336] FLUSH
10:20:15.333 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:15.335 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54908f6a, /127.0.0.1:56948 => /127.0.0.1:41336] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41336
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:15.335 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54908f6a, /127.0.0.1:56948 => /127.0.0.1:41336] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.335 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54908f6a, /127.0.0.1:56948 => /127.0.0.1:41336] FLUSH
10:20:15.335 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54908f6a, /127.0.0.1:56948 => /127.0.0.1:41336] CLOSE()
10:20:15.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.336 [nioEventLoopGroup-290-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-290-1
10:20:15.337 [nioEventLoopGroup-276-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-1
10:20:15.337 [nioEventLoopGroup-276-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-2
10:20:15.337 [nioEventLoopGroup-276-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-5
10:20:15.337 [nioEventLoopGroup-276-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-3
10:20:15.337 [nioEventLoopGroup-276-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-7
10:20:15.337 [nioEventLoopGroup-276-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-8
10:20:15.337 [nioEventLoopGroup-276-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-10
10:20:15.337 [nioEventLoopGroup-276-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-4
10:20:15.337 [nioEventLoopGroup-276-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-13
10:20:15.337 [nioEventLoopGroup-276-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-9
10:20:15.337 [nioEventLoopGroup-276-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-6
10:20:15.337 [nioEventLoopGroup-276-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-11
10:20:15.337 [nioEventLoopGroup-276-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-12
10:20:15.337 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75e7f5b1, /127.0.0.1:56946 :> /127.0.0.1:41336] INACTIVE
10:20:15.337 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75e7f5b1, /127.0.0.1:56946 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.337 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd880313, /127.0.0.1:56944 :> /127.0.0.1:41336] INACTIVE
10:20:15.337 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd880313, /127.0.0.1:56944 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.388 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe863109f, /127.0.0.1:41794 :> /127.0.0.1:44277] FLUSH
10:20:15.388 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe863109f, /127.0.0.1:41794 :> /127.0.0.1:44277] INACTIVE
10:20:15.388 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe863109f, /127.0.0.1:41794 :> /127.0.0.1:44277] UNREGISTERED
10:20:15.388 [nioEventLoopGroup-260-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-16
10:20:15.430 [nioEventLoopGroup-244-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-14
10:20:15.689 [MockServer thread for port: 34681] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34681
10:20:15.689 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.692 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ebe4ab7, /127.0.0.1:42048 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.692 [nioEventLoopGroup-292-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:15.692 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ebe4ab7, /127.0.0.1:42048 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.693 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ebe4ab7, /127.0.0.1:42048 => /127.0.0.1:34681] FLUSH
10:20:15.693 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.693 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ebe4ab7, /127.0.0.1:42048 => /127.0.0.1:34681] FLUSH
10:20:15.693 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ebe4ab7, /127.0.0.1:42048 :> /127.0.0.1:34681] INACTIVE
10:20:15.693 [nioEventLoopGroup-293-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-293-1
10:20:15.693 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ebe4ab7, /127.0.0.1:42048 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.694 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.696 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc703b63f, /127.0.0.1:42050 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.697 [nioEventLoopGroup-292-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:15.698 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc703b63f, /127.0.0.1:42050 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.698 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc703b63f, /127.0.0.1:42050 => /127.0.0.1:34681] FLUSH
10:20:15.698 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.698 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc703b63f, /127.0.0.1:42050 => /127.0.0.1:34681] FLUSH
10:20:15.699 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc703b63f, /127.0.0.1:42050 :> /127.0.0.1:34681] INACTIVE
10:20:15.699 [nioEventLoopGroup-294-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-294-1
10:20:15.699 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc703b63f, /127.0.0.1:42050 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.699 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.701 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a245af2, /127.0.0.1:42052 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.702 [nioEventLoopGroup-292-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:15.702 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a245af2, /127.0.0.1:42052 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.702 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a245af2, /127.0.0.1:42052 => /127.0.0.1:34681] FLUSH
10:20:15.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.703 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a245af2, /127.0.0.1:42052 => /127.0.0.1:34681] FLUSH
10:20:15.703 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a245af2, /127.0.0.1:42052 :> /127.0.0.1:34681] INACTIVE
10:20:15.703 [nioEventLoopGroup-295-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-295-1
10:20:15.703 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a245af2, /127.0.0.1:42052 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.704 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.706 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ba7000, /127.0.0.1:42054 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.707 [nioEventLoopGroup-292-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:15.707 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ba7000, /127.0.0.1:42054 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.707 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ba7000, /127.0.0.1:42054 => /127.0.0.1:34681] FLUSH
10:20:15.707 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.707 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ba7000, /127.0.0.1:42054 => /127.0.0.1:34681] FLUSH
10:20:15.707 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ba7000, /127.0.0.1:42054 :> /127.0.0.1:34681] INACTIVE
10:20:15.707 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa2ba7000, /127.0.0.1:42054 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.707 [nioEventLoopGroup-296-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-296-1
10:20:15.708 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.713 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21c57150, /127.0.0.1:42056 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.713 [nioEventLoopGroup-292-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:15.713 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21c57150, /127.0.0.1:42056 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.713 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21c57150, /127.0.0.1:42056 => /127.0.0.1:34681] FLUSH
10:20:15.714 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.714 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21c57150, /127.0.0.1:42056 => /127.0.0.1:34681] FLUSH
10:20:15.714 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21c57150, /127.0.0.1:42056 :> /127.0.0.1:34681] INACTIVE
10:20:15.714 [nioEventLoopGroup-297-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-297-1
10:20:15.714 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21c57150, /127.0.0.1:42056 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.717 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672e9b2d, /127.0.0.1:42058 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.717 [nioEventLoopGroup-292-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:15.718 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672e9b2d, /127.0.0.1:42058 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.718 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672e9b2d, /127.0.0.1:42058 => /127.0.0.1:34681] FLUSH
10:20:15.718 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.718 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672e9b2d, /127.0.0.1:42058 => /127.0.0.1:34681] FLUSH
10:20:15.718 [nioEventLoopGroup-298-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-298-1
10:20:15.718 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672e9b2d, /127.0.0.1:42058 :> /127.0.0.1:34681] INACTIVE
10:20:15.718 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x672e9b2d, /127.0.0.1:42058 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.721 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64109665, /127.0.0.1:42060 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.721 [nioEventLoopGroup-292-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:15.721 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64109665, /127.0.0.1:42060 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.722 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64109665, /127.0.0.1:42060 => /127.0.0.1:34681] FLUSH
10:20:15.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.722 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64109665, /127.0.0.1:42060 => /127.0.0.1:34681] FLUSH
10:20:15.722 [nioEventLoopGroup-299-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-299-1
10:20:15.722 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64109665, /127.0.0.1:42060 :> /127.0.0.1:34681] INACTIVE
10:20:15.722 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64109665, /127.0.0.1:42060 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.724 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.726 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59521974, /127.0.0.1:42062 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.726 [nioEventLoopGroup-292-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:15.726 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59521974, /127.0.0.1:42062 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.726 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59521974, /127.0.0.1:42062 => /127.0.0.1:34681] FLUSH
10:20:15.727 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.727 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59521974, /127.0.0.1:42062 => /127.0.0.1:34681] FLUSH
10:20:15.727 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59521974, /127.0.0.1:42062 :> /127.0.0.1:34681] INACTIVE
10:20:15.727 [nioEventLoopGroup-300-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-300-1
10:20:15.727 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59521974, /127.0.0.1:42062 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.729 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c39b7a5, /127.0.0.1:42064 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.730 [nioEventLoopGroup-292-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:15.730 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c39b7a5, /127.0.0.1:42064 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.730 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c39b7a5, /127.0.0.1:42064 => /127.0.0.1:34681] FLUSH
10:20:15.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.730 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c39b7a5, /127.0.0.1:42064 => /127.0.0.1:34681] FLUSH
10:20:15.730 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c39b7a5, /127.0.0.1:42064 :> /127.0.0.1:34681] INACTIVE
10:20:15.730 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c39b7a5, /127.0.0.1:42064 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.730 [nioEventLoopGroup-301-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-301-1
10:20:15.731 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.733 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb61455c, /127.0.0.1:42066 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.734 [nioEventLoopGroup-292-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:15.734 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb61455c, /127.0.0.1:42066 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.734 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb61455c, /127.0.0.1:42066 => /127.0.0.1:34681] FLUSH
10:20:15.734 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.734 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb61455c, /127.0.0.1:42066 => /127.0.0.1:34681] FLUSH
10:20:15.734 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb61455c, /127.0.0.1:42066 :> /127.0.0.1:34681] INACTIVE
10:20:15.734 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb61455c, /127.0.0.1:42066 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.734 [nioEventLoopGroup-302-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-302-1
10:20:15.735 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.737 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe710b0e2, /127.0.0.1:42068 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.737 [nioEventLoopGroup-292-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:15.737 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe710b0e2, /127.0.0.1:42068 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.737 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe710b0e2, /127.0.0.1:42068 => /127.0.0.1:34681] FLUSH
10:20:15.738 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.738 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe710b0e2, /127.0.0.1:42068 => /127.0.0.1:34681] FLUSH
10:20:15.738 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe710b0e2, /127.0.0.1:42068 :> /127.0.0.1:34681] INACTIVE
10:20:15.738 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe710b0e2, /127.0.0.1:42068 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.738 [nioEventLoopGroup-303-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-303-1
10:20:15.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.741 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0f50165, /127.0.0.1:42070 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.741 [nioEventLoopGroup-292-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:15.741 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0f50165, /127.0.0.1:42070 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.741 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0f50165, /127.0.0.1:42070 => /127.0.0.1:34681] FLUSH
10:20:15.742 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.742 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0f50165, /127.0.0.1:42070 => /127.0.0.1:34681] FLUSH
10:20:15.742 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0f50165, /127.0.0.1:42070 :> /127.0.0.1:34681] INACTIVE
10:20:15.742 [nioEventLoopGroup-304-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-304-1
10:20:15.742 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0f50165, /127.0.0.1:42070 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.742 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:15.745 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4080ea12, /127.0.0.1:42072 => /127.0.0.1:34681] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:15.746 [nioEventLoopGroup-292-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:15.746 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4080ea12, /127.0.0.1:42072 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.746 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4080ea12, /127.0.0.1:42072 => /127.0.0.1:34681] FLUSH
10:20:15.746 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.746 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4080ea12, /127.0.0.1:42072 => /127.0.0.1:34681] FLUSH
10:20:15.746 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4080ea12, /127.0.0.1:42072 :> /127.0.0.1:34681] INACTIVE
10:20:15.746 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4080ea12, /127.0.0.1:42072 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.746 [nioEventLoopGroup-305-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-305-1
10:20:15.751 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e04156e, /127.0.0.1:42074 => /127.0.0.1:34681] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:34681
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:15.751 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.752 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.752 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:15.752 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.752 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.752 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.753 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.753 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.753 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.753 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:15.753 [nioEventLoopGroup-292-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:15.753 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e04156e, /127.0.0.1:42074 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:15.753 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e04156e, /127.0.0.1:42074 => /127.0.0.1:34681] FLUSH
10:20:15.757 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e468d56, /127.0.0.1:42076 => /127.0.0.1:34681] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:34681
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:15.758 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.758 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.758 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:15.758 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.759 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.759 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.759 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.759 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.759 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:15.759 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:15.759 [nioEventLoopGroup-292-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34681" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:15.760 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e468d56, /127.0.0.1:42076 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:15.760 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e468d56, /127.0.0.1:42076 => /127.0.0.1:34681] FLUSH
10:20:15.760 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:15.762 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00d27e57, /127.0.0.1:42078 => /127.0.0.1:34681] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34681
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:15.762 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00d27e57, /127.0.0.1:42078 => /127.0.0.1:34681] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:15.763 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00d27e57, /127.0.0.1:42078 => /127.0.0.1:34681] FLUSH
10:20:15.763 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00d27e57, /127.0.0.1:42078 => /127.0.0.1:34681] CLOSE()
10:20:15.763 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:15.763 [nioEventLoopGroup-306-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-306-1
10:20:15.764 [nioEventLoopGroup-292-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-2
10:20:15.764 [nioEventLoopGroup-292-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-1
10:20:15.764 [nioEventLoopGroup-292-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-4
10:20:15.764 [nioEventLoopGroup-292-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-7
10:20:15.764 [nioEventLoopGroup-292-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-3
10:20:15.764 [nioEventLoopGroup-292-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-8
10:20:15.764 [nioEventLoopGroup-292-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-10
10:20:15.764 [nioEventLoopGroup-292-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-9
10:20:15.764 [nioEventLoopGroup-292-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-5
10:20:15.764 [nioEventLoopGroup-292-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-11
10:20:15.764 [nioEventLoopGroup-292-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-6
10:20:15.764 [nioEventLoopGroup-292-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-12
10:20:15.764 [nioEventLoopGroup-292-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-13
10:20:15.765 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e04156e, /127.0.0.1:42074 :> /127.0.0.1:34681] INACTIVE
10:20:15.765 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e468d56, /127.0.0.1:42076 :> /127.0.0.1:34681] INACTIVE
10:20:15.765 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e04156e, /127.0.0.1:42074 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.765 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e468d56, /127.0.0.1:42076 :> /127.0.0.1:34681] UNREGISTERED
10:20:15.837 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54908f6a, /127.0.0.1:56948 :> /127.0.0.1:41336] FLUSH
10:20:15.837 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54908f6a, /127.0.0.1:56948 :> /127.0.0.1:41336] INACTIVE
10:20:15.837 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54908f6a, /127.0.0.1:56948 :> /127.0.0.1:41336] UNREGISTERED
10:20:15.837 [nioEventLoopGroup-276-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-16
10:20:15.890 [nioEventLoopGroup-260-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-14
10:20:15.890 [nioEventLoopGroup-260-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-15
10:20:16.117 [MockServer thread for port: 44103] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44103
10:20:16.118 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.123 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74cca704, /127.0.0.1:47272 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.124 [nioEventLoopGroup-308-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:16.124 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74cca704, /127.0.0.1:47272 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.124 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74cca704, /127.0.0.1:47272 => /127.0.0.1:44103] FLUSH
10:20:16.125 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.125 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74cca704, /127.0.0.1:47272 => /127.0.0.1:44103] FLUSH
10:20:16.125 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74cca704, /127.0.0.1:47272 :> /127.0.0.1:44103] INACTIVE
10:20:16.125 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x74cca704, /127.0.0.1:47272 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.125 [nioEventLoopGroup-309-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-309-1
10:20:16.128 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.133 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1730710a, /127.0.0.1:47278 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.134 [nioEventLoopGroup-308-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:16.135 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1730710a, /127.0.0.1:47278 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.135 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1730710a, /127.0.0.1:47278 => /127.0.0.1:44103] FLUSH
10:20:16.135 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.135 [nioEventLoopGroup-310-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-310-1
10:20:16.135 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1730710a, /127.0.0.1:47278 => /127.0.0.1:44103] FLUSH
10:20:16.136 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1730710a, /127.0.0.1:47278 :> /127.0.0.1:44103] INACTIVE
10:20:16.136 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1730710a, /127.0.0.1:47278 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.148 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.150 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3c48b, /127.0.0.1:47280 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.155 [nioEventLoopGroup-308-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:16.156 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3c48b, /127.0.0.1:47280 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.156 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3c48b, /127.0.0.1:47280 => /127.0.0.1:44103] FLUSH
10:20:16.156 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3c48b, /127.0.0.1:47280 => /127.0.0.1:44103] FLUSH
10:20:16.156 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.156 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3c48b, /127.0.0.1:47280 :> /127.0.0.1:44103] INACTIVE
10:20:16.156 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe1f3c48b, /127.0.0.1:47280 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.156 [nioEventLoopGroup-311-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-311-1
10:20:16.157 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.160 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1586443d, /127.0.0.1:47282 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.160 [nioEventLoopGroup-308-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:16.161 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1586443d, /127.0.0.1:47282 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.161 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1586443d, /127.0.0.1:47282 => /127.0.0.1:44103] FLUSH
10:20:16.161 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.161 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1586443d, /127.0.0.1:47282 => /127.0.0.1:44103] FLUSH
10:20:16.161 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1586443d, /127.0.0.1:47282 :> /127.0.0.1:44103] INACTIVE
10:20:16.161 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1586443d, /127.0.0.1:47282 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.161 [nioEventLoopGroup-312-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-312-1
10:20:16.162 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.165 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x900cae23, /127.0.0.1:47284 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.165 [nioEventLoopGroup-308-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:16.166 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x900cae23, /127.0.0.1:47284 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.166 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x900cae23, /127.0.0.1:47284 => /127.0.0.1:44103] FLUSH
10:20:16.166 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.166 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x900cae23, /127.0.0.1:47284 => /127.0.0.1:44103] FLUSH
10:20:16.166 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x900cae23, /127.0.0.1:47284 :> /127.0.0.1:44103] INACTIVE
10:20:16.166 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x900cae23, /127.0.0.1:47284 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.166 [nioEventLoopGroup-313-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-313-1
10:20:16.172 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.174 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x115e8738, /127.0.0.1:47286 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.175 [nioEventLoopGroup-308-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:16.175 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x115e8738, /127.0.0.1:47286 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.175 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x115e8738, /127.0.0.1:47286 => /127.0.0.1:44103] FLUSH
10:20:16.175 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x115e8738, /127.0.0.1:47286 => /127.0.0.1:44103] FLUSH
10:20:16.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.175 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x115e8738, /127.0.0.1:47286 :> /127.0.0.1:44103] INACTIVE
10:20:16.175 [nioEventLoopGroup-314-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-314-1
10:20:16.175 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x115e8738, /127.0.0.1:47286 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.180 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.182 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42220f6c, /127.0.0.1:47288 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.183 [nioEventLoopGroup-308-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:16.183 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42220f6c, /127.0.0.1:47288 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.184 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42220f6c, /127.0.0.1:47288 => /127.0.0.1:44103] FLUSH
10:20:16.184 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.184 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42220f6c, /127.0.0.1:47288 => /127.0.0.1:44103] FLUSH
10:20:16.184 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42220f6c, /127.0.0.1:47288 :> /127.0.0.1:44103] INACTIVE
10:20:16.184 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42220f6c, /127.0.0.1:47288 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.184 [nioEventLoopGroup-315-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-315-1
10:20:16.187 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.190 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6875c29, /127.0.0.1:47290 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.191 [nioEventLoopGroup-308-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:16.191 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6875c29, /127.0.0.1:47290 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.191 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6875c29, /127.0.0.1:47290 => /127.0.0.1:44103] FLUSH
10:20:16.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.192 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6875c29, /127.0.0.1:47290 => /127.0.0.1:44103] FLUSH
10:20:16.192 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6875c29, /127.0.0.1:47290 :> /127.0.0.1:44103] INACTIVE
10:20:16.192 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6875c29, /127.0.0.1:47290 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.192 [nioEventLoopGroup-316-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-316-1
10:20:16.193 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.196 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x912b47bd, /127.0.0.1:47292 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.197 [nioEventLoopGroup-308-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:16.197 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x912b47bd, /127.0.0.1:47292 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.197 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x912b47bd, /127.0.0.1:47292 => /127.0.0.1:44103] FLUSH
10:20:16.198 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.198 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x912b47bd, /127.0.0.1:47292 => /127.0.0.1:44103] FLUSH
10:20:16.198 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x912b47bd, /127.0.0.1:47292 :> /127.0.0.1:44103] INACTIVE
10:20:16.198 [nioEventLoopGroup-317-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-317-1
10:20:16.198 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x912b47bd, /127.0.0.1:47292 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.204 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.207 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6001ce52, /127.0.0.1:47294 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.208 [nioEventLoopGroup-308-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:16.208 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6001ce52, /127.0.0.1:47294 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.208 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6001ce52, /127.0.0.1:47294 => /127.0.0.1:44103] FLUSH
10:20:16.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.209 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6001ce52, /127.0.0.1:47294 => /127.0.0.1:44103] FLUSH
10:20:16.209 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6001ce52, /127.0.0.1:47294 :> /127.0.0.1:44103] INACTIVE
10:20:16.209 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6001ce52, /127.0.0.1:47294 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.209 [nioEventLoopGroup-318-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-318-1
10:20:16.210 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.212 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6af4056a, /127.0.0.1:47296 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.212 [nioEventLoopGroup-308-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:16.213 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6af4056a, /127.0.0.1:47296 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.213 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6af4056a, /127.0.0.1:47296 => /127.0.0.1:44103] FLUSH
10:20:16.213 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.213 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6af4056a, /127.0.0.1:47296 => /127.0.0.1:44103] FLUSH
10:20:16.213 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6af4056a, /127.0.0.1:47296 :> /127.0.0.1:44103] INACTIVE
10:20:16.213 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6af4056a, /127.0.0.1:47296 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.213 [nioEventLoopGroup-319-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-319-1
10:20:16.215 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.218 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9128ec, /127.0.0.1:47298 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.218 [nioEventLoopGroup-308-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:16.219 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9128ec, /127.0.0.1:47298 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.219 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9128ec, /127.0.0.1:47298 => /127.0.0.1:44103] FLUSH
10:20:16.219 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.219 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9128ec, /127.0.0.1:47298 => /127.0.0.1:44103] FLUSH
10:20:16.219 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9128ec, /127.0.0.1:47298 :> /127.0.0.1:44103] INACTIVE
10:20:16.219 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda9128ec, /127.0.0.1:47298 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.219 [nioEventLoopGroup-320-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-320-1
10:20:16.220 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.222 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdcbd148, /127.0.0.1:47300 => /127.0.0.1:44103] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.223 [nioEventLoopGroup-308-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:16.223 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdcbd148, /127.0.0.1:47300 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.223 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdcbd148, /127.0.0.1:47300 => /127.0.0.1:44103] FLUSH
10:20:16.224 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.224 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdcbd148, /127.0.0.1:47300 => /127.0.0.1:44103] FLUSH
10:20:16.224 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdcbd148, /127.0.0.1:47300 :> /127.0.0.1:44103] INACTIVE
10:20:16.224 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdcbd148, /127.0.0.1:47300 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.224 [nioEventLoopGroup-321-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-321-1
10:20:16.229 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cae5847, /127.0.0.1:47302 => /127.0.0.1:44103] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:44103
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:16.229 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.230 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.230 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:16.230 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.230 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.230 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.231 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.231 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.231 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.231 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.231 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:16.232 [nioEventLoopGroup-308-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:16.232 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cae5847, /127.0.0.1:47302 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:16.232 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cae5847, /127.0.0.1:47302 => /127.0.0.1:44103] FLUSH
10:20:16.237 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aa44e71, /127.0.0.1:47304 => /127.0.0.1:44103] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:44103
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:16.238 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.238 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.238 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:16.239 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.239 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.239 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.239 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.240 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.240 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.240 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.240 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:16.241 [nioEventLoopGroup-308-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44103" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:16.241 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aa44e71, /127.0.0.1:47304 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:16.241 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aa44e71, /127.0.0.1:47304 => /127.0.0.1:44103] FLUSH
10:20:16.242 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:16.244 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cedb935, /127.0.0.1:47306 => /127.0.0.1:44103] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44103
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:16.245 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cedb935, /127.0.0.1:47306 => /127.0.0.1:44103] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.245 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cedb935, /127.0.0.1:47306 => /127.0.0.1:44103] FLUSH
10:20:16.245 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cedb935, /127.0.0.1:47306 => /127.0.0.1:44103] CLOSE()
10:20:16.245 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.246 [nioEventLoopGroup-322-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-322-1
10:20:16.247 [nioEventLoopGroup-308-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-1
10:20:16.247 [nioEventLoopGroup-308-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-2
10:20:16.247 [nioEventLoopGroup-308-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-6
10:20:16.247 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aa44e71, /127.0.0.1:47304 :> /127.0.0.1:44103] INACTIVE
10:20:16.247 [nioEventLoopGroup-308-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-12
10:20:16.247 [nioEventLoopGroup-308-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-11
10:20:16.247 [nioEventLoopGroup-308-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-10
10:20:16.247 [nioEventLoopGroup-308-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-8
10:20:16.247 [nioEventLoopGroup-308-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-9
10:20:16.247 [nioEventLoopGroup-308-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-7
10:20:16.247 [nioEventLoopGroup-308-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-5
10:20:16.248 [nioEventLoopGroup-308-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-4
10:20:16.248 [nioEventLoopGroup-308-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-3
10:20:16.248 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cae5847, /127.0.0.1:47302 :> /127.0.0.1:44103] INACTIVE
10:20:16.248 [nioEventLoopGroup-308-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-13
10:20:16.248 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5aa44e71, /127.0.0.1:47304 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.248 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cae5847, /127.0.0.1:47302 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.264 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00d27e57, /127.0.0.1:42078 :> /127.0.0.1:34681] FLUSH
10:20:16.264 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00d27e57, /127.0.0.1:42078 :> /127.0.0.1:34681] INACTIVE
10:20:16.264 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00d27e57, /127.0.0.1:42078 :> /127.0.0.1:34681] UNREGISTERED
10:20:16.265 [nioEventLoopGroup-292-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-16
10:20:16.338 [nioEventLoopGroup-276-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-15
10:20:16.338 [nioEventLoopGroup-276-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-14
10:20:16.604 [MockServer thread for port: 35400] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35400
10:20:16.604 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.606 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1448357, /127.0.0.1:42998 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.607 [nioEventLoopGroup-324-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:16.607 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1448357, /127.0.0.1:42998 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.607 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1448357, /127.0.0.1:42998 => /127.0.0.1:35400] FLUSH
10:20:16.608 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.608 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1448357, /127.0.0.1:42998 => /127.0.0.1:35400] FLUSH
10:20:16.608 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1448357, /127.0.0.1:42998 :> /127.0.0.1:35400] INACTIVE
10:20:16.608 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa1448357, /127.0.0.1:42998 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.608 [nioEventLoopGroup-325-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-325-1
10:20:16.609 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.611 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x026901d0, /127.0.0.1:43000 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.612 [nioEventLoopGroup-324-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:16.612 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x026901d0, /127.0.0.1:43000 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.612 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x026901d0, /127.0.0.1:43000 => /127.0.0.1:35400] FLUSH
10:20:16.612 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.612 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x026901d0, /127.0.0.1:43000 => /127.0.0.1:35400] FLUSH
10:20:16.612 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x026901d0, /127.0.0.1:43000 :> /127.0.0.1:35400] INACTIVE
10:20:16.612 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x026901d0, /127.0.0.1:43000 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.612 [nioEventLoopGroup-326-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-326-1
10:20:16.616 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.618 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b993109, /127.0.0.1:43002 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.619 [nioEventLoopGroup-324-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:16.619 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b993109, /127.0.0.1:43002 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.619 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b993109, /127.0.0.1:43002 => /127.0.0.1:35400] FLUSH
10:20:16.620 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.620 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b993109, /127.0.0.1:43002 => /127.0.0.1:35400] FLUSH
10:20:16.620 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b993109, /127.0.0.1:43002 :> /127.0.0.1:35400] INACTIVE
10:20:16.620 [nioEventLoopGroup-327-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-327-1
10:20:16.620 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b993109, /127.0.0.1:43002 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.623 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.625 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x379ec193, /127.0.0.1:43004 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.626 [nioEventLoopGroup-324-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:16.626 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x379ec193, /127.0.0.1:43004 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.626 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x379ec193, /127.0.0.1:43004 => /127.0.0.1:35400] FLUSH
10:20:16.627 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.627 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x379ec193, /127.0.0.1:43004 => /127.0.0.1:35400] FLUSH
10:20:16.627 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x379ec193, /127.0.0.1:43004 :> /127.0.0.1:35400] INACTIVE
10:20:16.627 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x379ec193, /127.0.0.1:43004 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.627 [nioEventLoopGroup-328-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-328-1
10:20:16.631 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.634 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71baf652, /127.0.0.1:43006 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.634 [nioEventLoopGroup-324-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:16.634 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71baf652, /127.0.0.1:43006 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.634 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71baf652, /127.0.0.1:43006 => /127.0.0.1:35400] FLUSH
10:20:16.635 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.635 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71baf652, /127.0.0.1:43006 => /127.0.0.1:35400] FLUSH
10:20:16.635 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71baf652, /127.0.0.1:43006 :> /127.0.0.1:35400] INACTIVE
10:20:16.635 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71baf652, /127.0.0.1:43006 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.635 [nioEventLoopGroup-329-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-329-1
10:20:16.636 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.638 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1b4d653, /127.0.0.1:43008 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.639 [nioEventLoopGroup-324-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:16.639 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1b4d653, /127.0.0.1:43008 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.639 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1b4d653, /127.0.0.1:43008 => /127.0.0.1:35400] FLUSH
10:20:16.640 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.640 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1b4d653, /127.0.0.1:43008 => /127.0.0.1:35400] FLUSH
10:20:16.640 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1b4d653, /127.0.0.1:43008 :> /127.0.0.1:35400] INACTIVE
10:20:16.640 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf1b4d653, /127.0.0.1:43008 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.640 [nioEventLoopGroup-330-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-330-1
10:20:16.641 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.642 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa609f074, /127.0.0.1:43010 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.643 [nioEventLoopGroup-324-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:16.643 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa609f074, /127.0.0.1:43010 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.643 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa609f074, /127.0.0.1:43010 => /127.0.0.1:35400] FLUSH
10:20:16.643 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.644 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa609f074, /127.0.0.1:43010 => /127.0.0.1:35400] FLUSH
10:20:16.644 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa609f074, /127.0.0.1:43010 :> /127.0.0.1:35400] INACTIVE
10:20:16.644 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa609f074, /127.0.0.1:43010 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.644 [nioEventLoopGroup-331-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-331-1
10:20:16.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.646 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df416d, /127.0.0.1:43012 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.647 [nioEventLoopGroup-324-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:16.647 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df416d, /127.0.0.1:43012 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.647 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df416d, /127.0.0.1:43012 => /127.0.0.1:35400] FLUSH
10:20:16.647 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.647 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df416d, /127.0.0.1:43012 => /127.0.0.1:35400] FLUSH
10:20:16.647 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df416d, /127.0.0.1:43012 :> /127.0.0.1:35400] INACTIVE
10:20:16.647 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87df416d, /127.0.0.1:43012 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.647 [nioEventLoopGroup-332-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-332-1
10:20:16.650 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.652 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26f7d3fd, /127.0.0.1:43014 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.652 [nioEventLoopGroup-324-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:16.652 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26f7d3fd, /127.0.0.1:43014 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.652 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26f7d3fd, /127.0.0.1:43014 => /127.0.0.1:35400] FLUSH
10:20:16.653 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.653 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26f7d3fd, /127.0.0.1:43014 => /127.0.0.1:35400] FLUSH
10:20:16.653 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26f7d3fd, /127.0.0.1:43014 :> /127.0.0.1:35400] INACTIVE
10:20:16.653 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26f7d3fd, /127.0.0.1:43014 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.653 [nioEventLoopGroup-333-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-333-1
10:20:16.653 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.656 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb2a2c40, /127.0.0.1:43016 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.656 [nioEventLoopGroup-324-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:16.656 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb2a2c40, /127.0.0.1:43016 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.656 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb2a2c40, /127.0.0.1:43016 => /127.0.0.1:35400] FLUSH
10:20:16.657 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.657 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb2a2c40, /127.0.0.1:43016 => /127.0.0.1:35400] FLUSH
10:20:16.657 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb2a2c40, /127.0.0.1:43016 :> /127.0.0.1:35400] INACTIVE
10:20:16.657 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb2a2c40, /127.0.0.1:43016 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.657 [nioEventLoopGroup-334-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-334-1
10:20:16.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.662 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafa6ca81, /127.0.0.1:43018 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.663 [nioEventLoopGroup-324-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:16.663 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafa6ca81, /127.0.0.1:43018 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.664 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafa6ca81, /127.0.0.1:43018 => /127.0.0.1:35400] FLUSH
10:20:16.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.664 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafa6ca81, /127.0.0.1:43018 => /127.0.0.1:35400] FLUSH
10:20:16.664 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafa6ca81, /127.0.0.1:43018 :> /127.0.0.1:35400] INACTIVE
10:20:16.664 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafa6ca81, /127.0.0.1:43018 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.664 [nioEventLoopGroup-335-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-335-1
10:20:16.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.667 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fcbdf00, /127.0.0.1:43020 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.668 [nioEventLoopGroup-324-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:16.669 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fcbdf00, /127.0.0.1:43020 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.669 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fcbdf00, /127.0.0.1:43020 => /127.0.0.1:35400] FLUSH
10:20:16.669 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.669 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fcbdf00, /127.0.0.1:43020 => /127.0.0.1:35400] FLUSH
10:20:16.669 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fcbdf00, /127.0.0.1:43020 :> /127.0.0.1:35400] INACTIVE
10:20:16.669 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fcbdf00, /127.0.0.1:43020 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.669 [nioEventLoopGroup-336-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-336-1
10:20:16.672 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:16.674 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedabf788, /127.0.0.1:43022 => /127.0.0.1:35400] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:16.675 [nioEventLoopGroup-324-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:16.675 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedabf788, /127.0.0.1:43022 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.675 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedabf788, /127.0.0.1:43022 => /127.0.0.1:35400] FLUSH
10:20:16.676 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedabf788, /127.0.0.1:43022 => /127.0.0.1:35400] FLUSH
10:20:16.676 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.676 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedabf788, /127.0.0.1:43022 :> /127.0.0.1:35400] INACTIVE
10:20:16.676 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xedabf788, /127.0.0.1:43022 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.676 [nioEventLoopGroup-337-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-337-1
10:20:16.679 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e9ed0c9, /127.0.0.1:43024 => /127.0.0.1:35400] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35400
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:16.679 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.680 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.680 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:16.680 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.680 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.681 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.681 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.681 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:16.681 [nioEventLoopGroup-324-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:16.682 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e9ed0c9, /127.0.0.1:43024 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:16.682 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e9ed0c9, /127.0.0.1:43024 => /127.0.0.1:35400] FLUSH
10:20:16.683 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e9ed0c9, /127.0.0.1:43024 => /127.0.0.1:35400] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35400
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:16.684 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.684 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.684 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:16.684 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.684 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.685 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.685 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:16.685 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
10:20:16.685 [nioEventLoopGroup-324-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35400" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:16.685 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e9ed0c9, /127.0.0.1:43024 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
10:20:16.686 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e9ed0c9, /127.0.0.1:43024 => /127.0.0.1:35400] FLUSH
10:20:16.686 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:16.697 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf840d8ca, /127.0.0.1:43026 => /127.0.0.1:35400] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35400
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:16.697 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf840d8ca, /127.0.0.1:43026 => /127.0.0.1:35400] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:16.697 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf840d8ca, /127.0.0.1:43026 => /127.0.0.1:35400] FLUSH
10:20:16.697 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf840d8ca, /127.0.0.1:43026 => /127.0.0.1:35400] CLOSE()
10:20:16.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:16.698 [nioEventLoopGroup-338-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-338-1
10:20:16.700 [nioEventLoopGroup-324-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-6
10:20:16.700 [nioEventLoopGroup-324-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-1
10:20:16.700 [nioEventLoopGroup-324-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-7
10:20:16.700 [nioEventLoopGroup-324-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-2
10:20:16.700 [nioEventLoopGroup-324-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-12
10:20:16.700 [nioEventLoopGroup-324-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-4
10:20:16.700 [nioEventLoopGroup-324-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-3
10:20:16.700 [nioEventLoopGroup-324-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-5
10:20:16.700 [nioEventLoopGroup-324-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-9
10:20:16.700 [nioEventLoopGroup-324-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-8
10:20:16.700 [nioEventLoopGroup-324-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-10
10:20:16.700 [nioEventLoopGroup-324-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-11
10:20:16.700 [nioEventLoopGroup-324-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-13
10:20:16.700 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e9ed0c9, /127.0.0.1:43024 :> /127.0.0.1:35400] INACTIVE
10:20:16.701 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e9ed0c9, /127.0.0.1:43024 :> /127.0.0.1:35400] UNREGISTERED
10:20:16.747 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cedb935, /127.0.0.1:47306 :> /127.0.0.1:44103] FLUSH
10:20:16.747 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cedb935, /127.0.0.1:47306 :> /127.0.0.1:44103] INACTIVE
10:20:16.747 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cedb935, /127.0.0.1:47306 :> /127.0.0.1:44103] UNREGISTERED
10:20:16.747 [nioEventLoopGroup-308-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-16
10:20:16.766 [nioEventLoopGroup-292-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-15
10:20:16.766 [nioEventLoopGroup-292-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-14
10:20:17.057 [MockServer thread for port: 33897] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33897
10:20:17.057 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.060 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f337c37, /127.0.0.1:59850 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.061 [nioEventLoopGroup-340-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:17.061 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f337c37, /127.0.0.1:59850 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.061 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f337c37, /127.0.0.1:59850 => /127.0.0.1:33897] FLUSH
10:20:17.061 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f337c37, /127.0.0.1:59850 => /127.0.0.1:33897] FLUSH
10:20:17.061 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.061 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f337c37, /127.0.0.1:59850 :> /127.0.0.1:33897] INACTIVE
10:20:17.061 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f337c37, /127.0.0.1:59850 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.062 [nioEventLoopGroup-341-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-341-1
10:20:17.064 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.066 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6af28c6, /127.0.0.1:59852 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.067 [nioEventLoopGroup-340-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:17.068 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6af28c6, /127.0.0.1:59852 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.068 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6af28c6, /127.0.0.1:59852 => /127.0.0.1:33897] FLUSH
10:20:17.068 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.068 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6af28c6, /127.0.0.1:59852 => /127.0.0.1:33897] FLUSH
10:20:17.068 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6af28c6, /127.0.0.1:59852 :> /127.0.0.1:33897] INACTIVE
10:20:17.068 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6af28c6, /127.0.0.1:59852 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.068 [nioEventLoopGroup-342-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-342-1
10:20:17.072 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.076 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7c54d1, /127.0.0.1:59854 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.077 [nioEventLoopGroup-340-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:17.077 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7c54d1, /127.0.0.1:59854 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.078 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7c54d1, /127.0.0.1:59854 => /127.0.0.1:33897] FLUSH
10:20:17.078 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.078 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7c54d1, /127.0.0.1:59854 => /127.0.0.1:33897] FLUSH
10:20:17.078 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7c54d1, /127.0.0.1:59854 :> /127.0.0.1:33897] INACTIVE
10:20:17.078 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7c54d1, /127.0.0.1:59854 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.078 [nioEventLoopGroup-343-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-343-1
10:20:17.084 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.086 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07d52c38, /127.0.0.1:59856 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.087 [nioEventLoopGroup-340-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:17.088 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07d52c38, /127.0.0.1:59856 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.088 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07d52c38, /127.0.0.1:59856 => /127.0.0.1:33897] FLUSH
10:20:17.088 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07d52c38, /127.0.0.1:59856 => /127.0.0.1:33897] FLUSH
10:20:17.088 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07d52c38, /127.0.0.1:59856 :> /127.0.0.1:33897] INACTIVE
10:20:17.089 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07d52c38, /127.0.0.1:59856 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.089 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.090 [nioEventLoopGroup-344-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-344-1
10:20:17.091 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.094 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6d990, /127.0.0.1:59858 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.095 [nioEventLoopGroup-340-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:17.095 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6d990, /127.0.0.1:59858 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.095 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6d990, /127.0.0.1:59858 => /127.0.0.1:33897] FLUSH
10:20:17.096 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.096 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6d990, /127.0.0.1:59858 => /127.0.0.1:33897] FLUSH
10:20:17.096 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6d990, /127.0.0.1:59858 :> /127.0.0.1:33897] INACTIVE
10:20:17.096 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6d990, /127.0.0.1:59858 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.096 [nioEventLoopGroup-345-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-345-1
10:20:17.097 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.100 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabe99d8d, /127.0.0.1:59860 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.101 [nioEventLoopGroup-340-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:17.102 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabe99d8d, /127.0.0.1:59860 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.102 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabe99d8d, /127.0.0.1:59860 => /127.0.0.1:33897] FLUSH
10:20:17.102 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.102 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabe99d8d, /127.0.0.1:59860 => /127.0.0.1:33897] FLUSH
10:20:17.102 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabe99d8d, /127.0.0.1:59860 :> /127.0.0.1:33897] INACTIVE
10:20:17.102 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xabe99d8d, /127.0.0.1:59860 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.102 [nioEventLoopGroup-346-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-346-1
10:20:17.108 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.111 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec786a54, /127.0.0.1:59862 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.111 [nioEventLoopGroup-340-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:17.111 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec786a54, /127.0.0.1:59862 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.111 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec786a54, /127.0.0.1:59862 => /127.0.0.1:33897] FLUSH
10:20:17.112 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.112 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec786a54, /127.0.0.1:59862 => /127.0.0.1:33897] FLUSH
10:20:17.112 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec786a54, /127.0.0.1:59862 :> /127.0.0.1:33897] INACTIVE
10:20:17.112 [nioEventLoopGroup-347-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-347-1
10:20:17.112 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec786a54, /127.0.0.1:59862 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.115 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.117 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac2d06b3, /127.0.0.1:59864 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.118 [nioEventLoopGroup-340-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:17.118 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac2d06b3, /127.0.0.1:59864 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.118 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac2d06b3, /127.0.0.1:59864 => /127.0.0.1:33897] FLUSH
10:20:17.118 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.118 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac2d06b3, /127.0.0.1:59864 => /127.0.0.1:33897] FLUSH
10:20:17.119 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac2d06b3, /127.0.0.1:59864 :> /127.0.0.1:33897] INACTIVE
10:20:17.119 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac2d06b3, /127.0.0.1:59864 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.119 [nioEventLoopGroup-348-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-348-1
10:20:17.123 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.125 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d6634b, /127.0.0.1:59866 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.126 [nioEventLoopGroup-340-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:17.126 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d6634b, /127.0.0.1:59866 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.126 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d6634b, /127.0.0.1:59866 => /127.0.0.1:33897] FLUSH
10:20:17.126 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.126 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d6634b, /127.0.0.1:59866 => /127.0.0.1:33897] FLUSH
10:20:17.126 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d6634b, /127.0.0.1:59866 :> /127.0.0.1:33897] INACTIVE
10:20:17.126 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d6634b, /127.0.0.1:59866 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.126 [nioEventLoopGroup-349-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-349-1
10:20:17.127 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.137 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0117c30, /127.0.0.1:59868 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.138 [nioEventLoopGroup-340-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:17.138 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0117c30, /127.0.0.1:59868 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.138 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0117c30, /127.0.0.1:59868 => /127.0.0.1:33897] FLUSH
10:20:17.138 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.139 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0117c30, /127.0.0.1:59868 => /127.0.0.1:33897] FLUSH
10:20:17.139 [nioEventLoopGroup-350-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-350-1
10:20:17.143 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0117c30, /127.0.0.1:59868 :> /127.0.0.1:33897] INACTIVE
10:20:17.143 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0117c30, /127.0.0.1:59868 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.146 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.148 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9b9eb94, /127.0.0.1:59870 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.149 [nioEventLoopGroup-340-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:17.149 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9b9eb94, /127.0.0.1:59870 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.149 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9b9eb94, /127.0.0.1:59870 => /127.0.0.1:33897] FLUSH
10:20:17.149 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.149 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9b9eb94, /127.0.0.1:59870 => /127.0.0.1:33897] FLUSH
10:20:17.149 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9b9eb94, /127.0.0.1:59870 :> /127.0.0.1:33897] INACTIVE
10:20:17.149 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9b9eb94, /127.0.0.1:59870 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.149 [nioEventLoopGroup-351-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-351-1
10:20:17.150 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.152 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2aacc667, /127.0.0.1:59872 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.153 [nioEventLoopGroup-340-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:17.153 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2aacc667, /127.0.0.1:59872 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.153 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2aacc667, /127.0.0.1:59872 => /127.0.0.1:33897] FLUSH
10:20:17.154 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.154 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2aacc667, /127.0.0.1:59872 => /127.0.0.1:33897] FLUSH
10:20:17.154 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2aacc667, /127.0.0.1:59872 :> /127.0.0.1:33897] INACTIVE
10:20:17.154 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2aacc667, /127.0.0.1:59872 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.154 [nioEventLoopGroup-352-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-352-1
10:20:17.160 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.162 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f8f8a24, /127.0.0.1:59874 => /127.0.0.1:33897] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.163 [nioEventLoopGroup-340-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:17.163 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f8f8a24, /127.0.0.1:59874 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.163 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f8f8a24, /127.0.0.1:59874 => /127.0.0.1:33897] FLUSH
10:20:17.164 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f8f8a24, /127.0.0.1:59874 => /127.0.0.1:33897] FLUSH
10:20:17.163 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.164 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f8f8a24, /127.0.0.1:59874 :> /127.0.0.1:33897] INACTIVE
10:20:17.164 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f8f8a24, /127.0.0.1:59874 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.164 [nioEventLoopGroup-353-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-353-1
10:20:17.172 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa04d5b1a, /127.0.0.1:59876 => /127.0.0.1:33897] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33897
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:17.173 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.173 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.173 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:17.173 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.173 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.174 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.174 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.174 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.174 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:17.174 [nioEventLoopGroup-340-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:17.175 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa04d5b1a, /127.0.0.1:59876 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:17.175 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa04d5b1a, /127.0.0.1:59876 => /127.0.0.1:33897] FLUSH
10:20:17.176 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa04d5b1a, /127.0.0.1:59876 => /127.0.0.1:33897] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33897
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:17.177 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.177 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.177 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:17.177 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.177 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.178 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.178 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.178 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.178 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
10:20:17.178 [nioEventLoopGroup-340-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33897" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:17.179 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa04d5b1a, /127.0.0.1:59876 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
10:20:17.179 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa04d5b1a, /127.0.0.1:59876 => /127.0.0.1:33897] FLUSH
10:20:17.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:17.181 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ae0a4ed, /127.0.0.1:59878 => /127.0.0.1:33897] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33897
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:17.181 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ae0a4ed, /127.0.0.1:59878 => /127.0.0.1:33897] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.182 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ae0a4ed, /127.0.0.1:59878 => /127.0.0.1:33897] FLUSH
10:20:17.182 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ae0a4ed, /127.0.0.1:59878 => /127.0.0.1:33897] CLOSE()
10:20:17.182 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.182 [nioEventLoopGroup-354-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-354-1
10:20:17.187 [nioEventLoopGroup-340-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-3
10:20:17.187 [nioEventLoopGroup-340-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-5
10:20:17.187 [nioEventLoopGroup-340-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-4
10:20:17.187 [nioEventLoopGroup-340-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-6
10:20:17.187 [nioEventLoopGroup-340-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-13
10:20:17.187 [nioEventLoopGroup-340-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-11
10:20:17.187 [nioEventLoopGroup-340-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-7
10:20:17.187 [nioEventLoopGroup-340-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-12
10:20:17.187 [nioEventLoopGroup-340-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-9
10:20:17.187 [nioEventLoopGroup-340-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-2
10:20:17.187 [nioEventLoopGroup-340-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-10
10:20:17.187 [nioEventLoopGroup-340-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-8
10:20:17.187 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa04d5b1a, /127.0.0.1:59876 :> /127.0.0.1:33897] INACTIVE
10:20:17.188 [nioEventLoopGroup-340-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-1
10:20:17.188 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa04d5b1a, /127.0.0.1:59876 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.200 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf840d8ca, /127.0.0.1:43026 :> /127.0.0.1:35400] FLUSH
10:20:17.200 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf840d8ca, /127.0.0.1:43026 :> /127.0.0.1:35400] INACTIVE
10:20:17.201 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf840d8ca, /127.0.0.1:43026 :> /127.0.0.1:35400] UNREGISTERED
10:20:17.201 [nioEventLoopGroup-324-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-15
10:20:17.249 [nioEventLoopGroup-308-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-15
10:20:17.249 [nioEventLoopGroup-308-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-14
10:20:17.543 [MockServer thread for port: 34731] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34731
10:20:17.543 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.545 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf6dd38f, /127.0.0.1:56696 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.546 [nioEventLoopGroup-356-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:17.546 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf6dd38f, /127.0.0.1:56696 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.546 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf6dd38f, /127.0.0.1:56696 => /127.0.0.1:34731] FLUSH
10:20:17.547 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.547 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf6dd38f, /127.0.0.1:56696 => /127.0.0.1:34731] FLUSH
10:20:17.547 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf6dd38f, /127.0.0.1:56696 :> /127.0.0.1:34731] INACTIVE
10:20:17.547 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf6dd38f, /127.0.0.1:56696 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.547 [nioEventLoopGroup-357-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-357-1
10:20:17.548 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.550 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb82c32af, /127.0.0.1:56698 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.550 [nioEventLoopGroup-356-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:17.551 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb82c32af, /127.0.0.1:56698 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.551 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb82c32af, /127.0.0.1:56698 => /127.0.0.1:34731] FLUSH
10:20:17.551 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.551 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb82c32af, /127.0.0.1:56698 => /127.0.0.1:34731] FLUSH
10:20:17.551 [nioEventLoopGroup-358-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-358-1
10:20:17.551 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb82c32af, /127.0.0.1:56698 :> /127.0.0.1:34731] INACTIVE
10:20:17.551 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb82c32af, /127.0.0.1:56698 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.552 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.554 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd89aab15, /127.0.0.1:56700 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.555 [nioEventLoopGroup-356-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:17.555 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd89aab15, /127.0.0.1:56700 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.555 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd89aab15, /127.0.0.1:56700 => /127.0.0.1:34731] FLUSH
10:20:17.555 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.555 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd89aab15, /127.0.0.1:56700 => /127.0.0.1:34731] FLUSH
10:20:17.555 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd89aab15, /127.0.0.1:56700 :> /127.0.0.1:34731] INACTIVE
10:20:17.555 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd89aab15, /127.0.0.1:56700 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.555 [nioEventLoopGroup-359-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-359-1
10:20:17.556 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.558 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe12057b5, /127.0.0.1:56702 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.558 [nioEventLoopGroup-356-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:17.558 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe12057b5, /127.0.0.1:56702 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.559 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe12057b5, /127.0.0.1:56702 => /127.0.0.1:34731] FLUSH
10:20:17.559 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.559 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe12057b5, /127.0.0.1:56702 => /127.0.0.1:34731] FLUSH
10:20:17.559 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe12057b5, /127.0.0.1:56702 :> /127.0.0.1:34731] INACTIVE
10:20:17.559 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe12057b5, /127.0.0.1:56702 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.559 [nioEventLoopGroup-360-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-360-1
10:20:17.560 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.561 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74d01e8, /127.0.0.1:56704 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.562 [nioEventLoopGroup-356-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:17.563 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74d01e8, /127.0.0.1:56704 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.563 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74d01e8, /127.0.0.1:56704 => /127.0.0.1:34731] FLUSH
10:20:17.563 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.563 [nioEventLoopGroup-361-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-361-1
10:20:17.563 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74d01e8, /127.0.0.1:56704 => /127.0.0.1:34731] FLUSH
10:20:17.563 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74d01e8, /127.0.0.1:56704 :> /127.0.0.1:34731] INACTIVE
10:20:17.563 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74d01e8, /127.0.0.1:56704 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.564 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.566 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3de373c9, /127.0.0.1:56706 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.567 [nioEventLoopGroup-356-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:17.567 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3de373c9, /127.0.0.1:56706 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.567 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3de373c9, /127.0.0.1:56706 => /127.0.0.1:34731] FLUSH
10:20:17.567 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.567 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3de373c9, /127.0.0.1:56706 => /127.0.0.1:34731] FLUSH
10:20:17.567 [nioEventLoopGroup-362-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-362-1
10:20:17.567 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3de373c9, /127.0.0.1:56706 :> /127.0.0.1:34731] INACTIVE
10:20:17.567 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3de373c9, /127.0.0.1:56706 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.569 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.571 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc438b9fc, /127.0.0.1:56708 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.572 [nioEventLoopGroup-356-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:17.572 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc438b9fc, /127.0.0.1:56708 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.572 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc438b9fc, /127.0.0.1:56708 => /127.0.0.1:34731] FLUSH
10:20:17.572 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.572 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc438b9fc, /127.0.0.1:56708 => /127.0.0.1:34731] FLUSH
10:20:17.573 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc438b9fc, /127.0.0.1:56708 :> /127.0.0.1:34731] INACTIVE
10:20:17.573 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc438b9fc, /127.0.0.1:56708 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.573 [nioEventLoopGroup-363-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-363-1
10:20:17.573 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.576 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8a42e80, /127.0.0.1:56710 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.577 [nioEventLoopGroup-356-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:17.577 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8a42e80, /127.0.0.1:56710 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.577 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8a42e80, /127.0.0.1:56710 => /127.0.0.1:34731] FLUSH
10:20:17.577 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.577 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8a42e80, /127.0.0.1:56710 => /127.0.0.1:34731] FLUSH
10:20:17.577 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8a42e80, /127.0.0.1:56710 :> /127.0.0.1:34731] INACTIVE
10:20:17.577 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8a42e80, /127.0.0.1:56710 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.577 [nioEventLoopGroup-364-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-364-1
10:20:17.578 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.580 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78bd53a, /127.0.0.1:56712 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.581 [nioEventLoopGroup-356-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:17.581 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78bd53a, /127.0.0.1:56712 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.582 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78bd53a, /127.0.0.1:56712 => /127.0.0.1:34731] FLUSH
10:20:17.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.582 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78bd53a, /127.0.0.1:56712 => /127.0.0.1:34731] FLUSH
10:20:17.582 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78bd53a, /127.0.0.1:56712 :> /127.0.0.1:34731] INACTIVE
10:20:17.582 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe78bd53a, /127.0.0.1:56712 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.582 [nioEventLoopGroup-365-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-365-1
10:20:17.588 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.590 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f9ff457, /127.0.0.1:56714 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.591 [nioEventLoopGroup-356-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:17.591 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f9ff457, /127.0.0.1:56714 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.591 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f9ff457, /127.0.0.1:56714 => /127.0.0.1:34731] FLUSH
10:20:17.591 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f9ff457, /127.0.0.1:56714 => /127.0.0.1:34731] FLUSH
10:20:17.591 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.592 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f9ff457, /127.0.0.1:56714 :> /127.0.0.1:34731] INACTIVE
10:20:17.592 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f9ff457, /127.0.0.1:56714 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.592 [nioEventLoopGroup-366-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-366-1
10:20:17.592 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.595 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fac35b8, /127.0.0.1:56716 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.595 [nioEventLoopGroup-356-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:17.596 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fac35b8, /127.0.0.1:56716 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.596 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fac35b8, /127.0.0.1:56716 => /127.0.0.1:34731] FLUSH
10:20:17.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.596 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fac35b8, /127.0.0.1:56716 => /127.0.0.1:34731] FLUSH
10:20:17.596 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fac35b8, /127.0.0.1:56716 :> /127.0.0.1:34731] INACTIVE
10:20:17.596 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fac35b8, /127.0.0.1:56716 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.596 [nioEventLoopGroup-367-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-367-1
10:20:17.597 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.600 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75f8d408, /127.0.0.1:56718 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.601 [nioEventLoopGroup-356-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:17.601 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75f8d408, /127.0.0.1:56718 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.601 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75f8d408, /127.0.0.1:56718 => /127.0.0.1:34731] FLUSH
10:20:17.601 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.601 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75f8d408, /127.0.0.1:56718 => /127.0.0.1:34731] FLUSH
10:20:17.602 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75f8d408, /127.0.0.1:56718 :> /127.0.0.1:34731] INACTIVE
10:20:17.602 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75f8d408, /127.0.0.1:56718 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.602 [nioEventLoopGroup-368-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-368-1
10:20:17.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.605 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe314ad2a, /127.0.0.1:56720 => /127.0.0.1:34731] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.606 [nioEventLoopGroup-356-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:17.606 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe314ad2a, /127.0.0.1:56720 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.607 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe314ad2a, /127.0.0.1:56720 => /127.0.0.1:34731] FLUSH
10:20:17.607 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.607 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe314ad2a, /127.0.0.1:56720 => /127.0.0.1:34731] FLUSH
10:20:17.607 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe314ad2a, /127.0.0.1:56720 :> /127.0.0.1:34731] INACTIVE
10:20:17.607 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe314ad2a, /127.0.0.1:56720 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.607 [nioEventLoopGroup-369-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-369-1
10:20:17.609 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d1e, /127.0.0.1:56722 => /127.0.0.1:34731] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:34731
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:17.610 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.610 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.611 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:17.611 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.611 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.611 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.612 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.612 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.612 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.612 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:17.613 [nioEventLoopGroup-356-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:17.613 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d1e, /127.0.0.1:56722 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:17.613 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d1e, /127.0.0.1:56722 => /127.0.0.1:34731] FLUSH
10:20:17.615 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d1e, /127.0.0.1:56722 => /127.0.0.1:34731] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:34731
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:17.615 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.616 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.616 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:17.616 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.616 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.617 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.617 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.617 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.617 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:17.617 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
10:20:17.618 [nioEventLoopGroup-356-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34731" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:17.618 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d1e, /127.0.0.1:56722 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
10:20:17.618 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d1e, /127.0.0.1:56722 => /127.0.0.1:34731] FLUSH
10:20:17.619 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:17.621 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2caf0f97, /127.0.0.1:56724 => /127.0.0.1:34731] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34731
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:17.621 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2caf0f97, /127.0.0.1:56724 => /127.0.0.1:34731] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.621 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2caf0f97, /127.0.0.1:56724 => /127.0.0.1:34731] FLUSH
10:20:17.622 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2caf0f97, /127.0.0.1:56724 => /127.0.0.1:34731] CLOSE()
10:20:17.622 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.622 [nioEventLoopGroup-370-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-370-1
10:20:17.623 [nioEventLoopGroup-356-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-2
10:20:17.623 [nioEventLoopGroup-356-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-1
10:20:17.623 [nioEventLoopGroup-356-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-5
10:20:17.623 [nioEventLoopGroup-356-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-4
10:20:17.623 [nioEventLoopGroup-356-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-9
10:20:17.623 [nioEventLoopGroup-356-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-3
10:20:17.623 [nioEventLoopGroup-356-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-12
10:20:17.623 [nioEventLoopGroup-356-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-6
10:20:17.623 [nioEventLoopGroup-356-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-13
10:20:17.623 [nioEventLoopGroup-356-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-7
10:20:17.623 [nioEventLoopGroup-356-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-8
10:20:17.623 [nioEventLoopGroup-356-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-10
10:20:17.623 [nioEventLoopGroup-356-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-11
10:20:17.624 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d1e, /127.0.0.1:56722 :> /127.0.0.1:34731] INACTIVE
10:20:17.624 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d1e, /127.0.0.1:56722 :> /127.0.0.1:34731] UNREGISTERED
10:20:17.687 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ae0a4ed, /127.0.0.1:59878 :> /127.0.0.1:33897] FLUSH
10:20:17.687 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ae0a4ed, /127.0.0.1:59878 :> /127.0.0.1:33897] INACTIVE
10:20:17.687 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ae0a4ed, /127.0.0.1:59878 :> /127.0.0.1:33897] UNREGISTERED
10:20:17.688 [nioEventLoopGroup-340-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-15
10:20:17.702 [nioEventLoopGroup-324-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-14
10:20:17.984 [MockServer thread for port: 35718] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35718
10:20:17.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.987 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64d8514, /127.0.0.1:53208 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.987 [nioEventLoopGroup-372-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:17.988 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64d8514, /127.0.0.1:53208 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.988 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64d8514, /127.0.0.1:53208 => /127.0.0.1:35718] FLUSH
10:20:17.988 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.988 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64d8514, /127.0.0.1:53208 => /127.0.0.1:35718] FLUSH
10:20:17.988 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64d8514, /127.0.0.1:53208 :> /127.0.0.1:35718] INACTIVE
10:20:17.988 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd64d8514, /127.0.0.1:53208 :> /127.0.0.1:35718] UNREGISTERED
10:20:17.988 [nioEventLoopGroup-373-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-373-1
10:20:17.989 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:17.992 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9236d989, /127.0.0.1:53210 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:17.993 [nioEventLoopGroup-372-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:17.993 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9236d989, /127.0.0.1:53210 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:17.993 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9236d989, /127.0.0.1:53210 => /127.0.0.1:35718] FLUSH
10:20:17.993 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:17.993 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9236d989, /127.0.0.1:53210 => /127.0.0.1:35718] FLUSH
10:20:17.994 [nioEventLoopGroup-374-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-374-1
10:20:17.996 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9236d989, /127.0.0.1:53210 :> /127.0.0.1:35718] INACTIVE
10:20:17.996 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9236d989, /127.0.0.1:53210 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.001 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.003 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x568e1cca, /127.0.0.1:53212 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.004 [nioEventLoopGroup-372-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:18.004 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x568e1cca, /127.0.0.1:53212 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.004 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x568e1cca, /127.0.0.1:53212 => /127.0.0.1:35718] FLUSH
10:20:18.005 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.005 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x568e1cca, /127.0.0.1:53212 => /127.0.0.1:35718] FLUSH
10:20:18.005 [nioEventLoopGroup-375-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-375-1
10:20:18.005 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x568e1cca, /127.0.0.1:53212 :> /127.0.0.1:35718] INACTIVE
10:20:18.005 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x568e1cca, /127.0.0.1:53212 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.008 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.010 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd034f20, /127.0.0.1:53214 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.011 [nioEventLoopGroup-372-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:18.011 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd034f20, /127.0.0.1:53214 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.011 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd034f20, /127.0.0.1:53214 => /127.0.0.1:35718] FLUSH
10:20:18.012 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd034f20, /127.0.0.1:53214 => /127.0.0.1:35718] FLUSH
10:20:18.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.012 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd034f20, /127.0.0.1:53214 :> /127.0.0.1:35718] INACTIVE
10:20:18.012 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcd034f20, /127.0.0.1:53214 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.012 [nioEventLoopGroup-376-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-376-1
10:20:18.019 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.022 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde132655, /127.0.0.1:53216 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.023 [nioEventLoopGroup-372-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:18.023 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde132655, /127.0.0.1:53216 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.023 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde132655, /127.0.0.1:53216 => /127.0.0.1:35718] FLUSH
10:20:18.023 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.024 [nioEventLoopGroup-377-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-377-1
10:20:18.024 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde132655, /127.0.0.1:53216 => /127.0.0.1:35718] FLUSH
10:20:18.024 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde132655, /127.0.0.1:53216 :> /127.0.0.1:35718] INACTIVE
10:20:18.024 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde132655, /127.0.0.1:53216 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.027 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a1742b5, /127.0.0.1:53218 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.028 [nioEventLoopGroup-372-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:18.028 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a1742b5, /127.0.0.1:53218 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.028 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a1742b5, /127.0.0.1:53218 => /127.0.0.1:35718] FLUSH
10:20:18.028 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.028 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a1742b5, /127.0.0.1:53218 => /127.0.0.1:35718] FLUSH
10:20:18.028 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a1742b5, /127.0.0.1:53218 :> /127.0.0.1:35718] INACTIVE
10:20:18.028 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a1742b5, /127.0.0.1:53218 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.028 [nioEventLoopGroup-378-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-378-1
10:20:18.031 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.033 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724a022a, /127.0.0.1:53220 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.034 [nioEventLoopGroup-372-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:18.034 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724a022a, /127.0.0.1:53220 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.035 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724a022a, /127.0.0.1:53220 => /127.0.0.1:35718] FLUSH
10:20:18.035 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.035 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724a022a, /127.0.0.1:53220 => /127.0.0.1:35718] FLUSH
10:20:18.035 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724a022a, /127.0.0.1:53220 :> /127.0.0.1:35718] INACTIVE
10:20:18.035 [nioEventLoopGroup-379-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-379-1
10:20:18.035 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x724a022a, /127.0.0.1:53220 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.036 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.038 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffc34f46, /127.0.0.1:53222 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.039 [nioEventLoopGroup-372-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:18.039 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffc34f46, /127.0.0.1:53222 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.039 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffc34f46, /127.0.0.1:53222 => /127.0.0.1:35718] FLUSH
10:20:18.040 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.040 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffc34f46, /127.0.0.1:53222 => /127.0.0.1:35718] FLUSH
10:20:18.040 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffc34f46, /127.0.0.1:53222 :> /127.0.0.1:35718] INACTIVE
10:20:18.040 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xffc34f46, /127.0.0.1:53222 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.040 [nioEventLoopGroup-380-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-380-1
10:20:18.047 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.050 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc94bb32f, /127.0.0.1:53224 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.051 [nioEventLoopGroup-372-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:18.051 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc94bb32f, /127.0.0.1:53224 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.051 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc94bb32f, /127.0.0.1:53224 => /127.0.0.1:35718] FLUSH
10:20:18.051 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc94bb32f, /127.0.0.1:53224 => /127.0.0.1:35718] FLUSH
10:20:18.051 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.051 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc94bb32f, /127.0.0.1:53224 :> /127.0.0.1:35718] INACTIVE
10:20:18.051 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc94bb32f, /127.0.0.1:53224 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.052 [nioEventLoopGroup-381-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-381-1
10:20:18.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.056 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a8e1cc6, /127.0.0.1:53226 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.056 [nioEventLoopGroup-372-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:18.056 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a8e1cc6, /127.0.0.1:53226 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.057 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a8e1cc6, /127.0.0.1:53226 => /127.0.0.1:35718] FLUSH
10:20:18.057 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.057 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a8e1cc6, /127.0.0.1:53226 => /127.0.0.1:35718] FLUSH
10:20:18.057 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a8e1cc6, /127.0.0.1:53226 :> /127.0.0.1:35718] INACTIVE
10:20:18.057 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a8e1cc6, /127.0.0.1:53226 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.057 [nioEventLoopGroup-382-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-382-1
10:20:18.064 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.066 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56160c8d, /127.0.0.1:53228 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.067 [nioEventLoopGroup-372-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:18.067 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56160c8d, /127.0.0.1:53228 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.067 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56160c8d, /127.0.0.1:53228 => /127.0.0.1:35718] FLUSH
10:20:18.067 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56160c8d, /127.0.0.1:53228 => /127.0.0.1:35718] FLUSH
10:20:18.067 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.067 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56160c8d, /127.0.0.1:53228 :> /127.0.0.1:35718] INACTIVE
10:20:18.067 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x56160c8d, /127.0.0.1:53228 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.067 [nioEventLoopGroup-383-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-383-1
10:20:18.071 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.073 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbf2740d, /127.0.0.1:53230 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.074 [nioEventLoopGroup-372-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:18.074 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbf2740d, /127.0.0.1:53230 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.074 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbf2740d, /127.0.0.1:53230 => /127.0.0.1:35718] FLUSH
10:20:18.074 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.075 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbf2740d, /127.0.0.1:53230 => /127.0.0.1:35718] FLUSH
10:20:18.075 [nioEventLoopGroup-384-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-384-1
10:20:18.075 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbf2740d, /127.0.0.1:53230 :> /127.0.0.1:35718] INACTIVE
10:20:18.075 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbf2740d, /127.0.0.1:53230 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.082 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.084 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc968ca, /127.0.0.1:53232 => /127.0.0.1:35718] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.085 [nioEventLoopGroup-372-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:18.085 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc968ca, /127.0.0.1:53232 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.085 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc968ca, /127.0.0.1:53232 => /127.0.0.1:35718] FLUSH
10:20:18.086 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.086 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc968ca, /127.0.0.1:53232 => /127.0.0.1:35718] FLUSH
10:20:18.086 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc968ca, /127.0.0.1:53232 :> /127.0.0.1:35718] INACTIVE
10:20:18.086 [nioEventLoopGroup-385-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-385-1
10:20:18.086 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc968ca, /127.0.0.1:53232 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.088 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08561e0f, /127.0.0.1:53234 => /127.0.0.1:35718] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35718
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:18.088 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.088 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.089 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:18.089 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.089 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.089 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.089 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.090 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.090 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.090 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.090 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:18.090 [nioEventLoopGroup-372-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:18.091 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08561e0f, /127.0.0.1:53234 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:18.091 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08561e0f, /127.0.0.1:53234 => /127.0.0.1:35718] FLUSH
10:20:18.092 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08561e0f, /127.0.0.1:53234 => /127.0.0.1:35718] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35718
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:18.093 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.093 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.093 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:18.093 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.093 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.093 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.094 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.094 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.094 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.094 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:18.094 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
10:20:18.095 [nioEventLoopGroup-372-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35718" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:18.095 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08561e0f, /127.0.0.1:53234 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
10:20:18.095 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08561e0f, /127.0.0.1:53234 => /127.0.0.1:35718] FLUSH
10:20:18.095 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:18.097 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35223e16, /127.0.0.1:53236 => /127.0.0.1:35718] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35718
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:18.098 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35223e16, /127.0.0.1:53236 => /127.0.0.1:35718] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.098 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35223e16, /127.0.0.1:53236 => /127.0.0.1:35718] FLUSH
10:20:18.098 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.098 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35223e16, /127.0.0.1:53236 => /127.0.0.1:35718] CLOSE()
10:20:18.099 [nioEventLoopGroup-386-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-386-1
10:20:18.107 [nioEventLoopGroup-372-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-1
10:20:18.107 [nioEventLoopGroup-372-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-2
10:20:18.107 [nioEventLoopGroup-372-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-3
10:20:18.107 [nioEventLoopGroup-372-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-6
10:20:18.107 [nioEventLoopGroup-372-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-11
10:20:18.107 [nioEventLoopGroup-372-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-12
10:20:18.107 [nioEventLoopGroup-372-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-5
10:20:18.107 [nioEventLoopGroup-372-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-4
10:20:18.107 [nioEventLoopGroup-372-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-7
10:20:18.107 [nioEventLoopGroup-372-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-8
10:20:18.107 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08561e0f, /127.0.0.1:53234 :> /127.0.0.1:35718] INACTIVE
10:20:18.107 [nioEventLoopGroup-372-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-9
10:20:18.107 [nioEventLoopGroup-372-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-13
10:20:18.107 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08561e0f, /127.0.0.1:53234 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.111 [nioEventLoopGroup-372-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-10
10:20:18.127 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2caf0f97, /127.0.0.1:56724 :> /127.0.0.1:34731] FLUSH
10:20:18.127 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2caf0f97, /127.0.0.1:56724 :> /127.0.0.1:34731] INACTIVE
10:20:18.127 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2caf0f97, /127.0.0.1:56724 :> /127.0.0.1:34731] UNREGISTERED
10:20:18.127 [nioEventLoopGroup-356-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-15
10:20:18.189 [nioEventLoopGroup-340-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-14
10:20:18.456 [MockServer thread for port: 42132] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42132
10:20:18.457 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.459 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebdf8279, /127.0.0.1:36752 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.460 [nioEventLoopGroup-388-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:18.460 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebdf8279, /127.0.0.1:36752 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.460 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebdf8279, /127.0.0.1:36752 => /127.0.0.1:42132] FLUSH
10:20:18.461 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.461 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebdf8279, /127.0.0.1:36752 => /127.0.0.1:42132] FLUSH
10:20:18.461 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebdf8279, /127.0.0.1:36752 :> /127.0.0.1:42132] INACTIVE
10:20:18.461 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebdf8279, /127.0.0.1:36752 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.461 [nioEventLoopGroup-389-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-389-1
10:20:18.462 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.464 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cf03761, /127.0.0.1:36754 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.465 [nioEventLoopGroup-388-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:18.465 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cf03761, /127.0.0.1:36754 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.465 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cf03761, /127.0.0.1:36754 => /127.0.0.1:42132] FLUSH
10:20:18.465 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.465 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cf03761, /127.0.0.1:36754 => /127.0.0.1:42132] FLUSH
10:20:18.465 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cf03761, /127.0.0.1:36754 :> /127.0.0.1:42132] INACTIVE
10:20:18.465 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cf03761, /127.0.0.1:36754 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.465 [nioEventLoopGroup-390-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-390-1
10:20:18.466 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.468 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4bbbbae6, /127.0.0.1:36756 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.468 [nioEventLoopGroup-388-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:18.468 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4bbbbae6, /127.0.0.1:36756 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.468 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4bbbbae6, /127.0.0.1:36756 => /127.0.0.1:42132] FLUSH
10:20:18.469 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.469 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4bbbbae6, /127.0.0.1:36756 => /127.0.0.1:42132] FLUSH
10:20:18.469 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4bbbbae6, /127.0.0.1:36756 :> /127.0.0.1:42132] INACTIVE
10:20:18.469 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4bbbbae6, /127.0.0.1:36756 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.469 [nioEventLoopGroup-391-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-391-1
10:20:18.469 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.471 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15b04c28, /127.0.0.1:36758 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.472 [nioEventLoopGroup-388-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:18.472 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15b04c28, /127.0.0.1:36758 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.472 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15b04c28, /127.0.0.1:36758 => /127.0.0.1:42132] FLUSH
10:20:18.472 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.472 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15b04c28, /127.0.0.1:36758 => /127.0.0.1:42132] FLUSH
10:20:18.472 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15b04c28, /127.0.0.1:36758 :> /127.0.0.1:42132] INACTIVE
10:20:18.472 [nioEventLoopGroup-392-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-392-1
10:20:18.472 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15b04c28, /127.0.0.1:36758 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.473 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.475 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x461bba94, /127.0.0.1:36760 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.476 [nioEventLoopGroup-388-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:18.476 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x461bba94, /127.0.0.1:36760 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.476 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x461bba94, /127.0.0.1:36760 => /127.0.0.1:42132] FLUSH
10:20:18.476 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.476 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x461bba94, /127.0.0.1:36760 => /127.0.0.1:42132] FLUSH
10:20:18.476 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x461bba94, /127.0.0.1:36760 :> /127.0.0.1:42132] INACTIVE
10:20:18.476 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x461bba94, /127.0.0.1:36760 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.477 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.479 [nioEventLoopGroup-393-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-393-1
10:20:18.479 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37f89266, /127.0.0.1:36762 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.479 [nioEventLoopGroup-388-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:18.480 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37f89266, /127.0.0.1:36762 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.480 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37f89266, /127.0.0.1:36762 => /127.0.0.1:42132] FLUSH
10:20:18.480 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.480 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37f89266, /127.0.0.1:36762 => /127.0.0.1:42132] FLUSH
10:20:18.480 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37f89266, /127.0.0.1:36762 :> /127.0.0.1:42132] INACTIVE
10:20:18.480 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37f89266, /127.0.0.1:36762 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.480 [nioEventLoopGroup-394-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-394-1
10:20:18.481 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.482 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd5e5e75, /127.0.0.1:36764 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.483 [nioEventLoopGroup-388-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:18.483 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd5e5e75, /127.0.0.1:36764 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.483 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd5e5e75, /127.0.0.1:36764 => /127.0.0.1:42132] FLUSH
10:20:18.484 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.484 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd5e5e75, /127.0.0.1:36764 => /127.0.0.1:42132] FLUSH
10:20:18.484 [nioEventLoopGroup-395-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-395-1
10:20:18.484 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd5e5e75, /127.0.0.1:36764 :> /127.0.0.1:42132] INACTIVE
10:20:18.484 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd5e5e75, /127.0.0.1:36764 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.486 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.488 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd68aa895, /127.0.0.1:36766 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.489 [nioEventLoopGroup-388-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:18.489 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd68aa895, /127.0.0.1:36766 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.489 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd68aa895, /127.0.0.1:36766 => /127.0.0.1:42132] FLUSH
10:20:18.489 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.489 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd68aa895, /127.0.0.1:36766 => /127.0.0.1:42132] FLUSH
10:20:18.489 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd68aa895, /127.0.0.1:36766 :> /127.0.0.1:42132] INACTIVE
10:20:18.489 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd68aa895, /127.0.0.1:36766 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.489 [nioEventLoopGroup-396-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-396-1
10:20:18.714 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35223e16, /127.0.0.1:53236 :> /127.0.0.1:35718] FLUSH
10:20:18.714 [nioEventLoopGroup-356-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-14
10:20:18.714 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35223e16, /127.0.0.1:53236 :> /127.0.0.1:35718] INACTIVE
10:20:18.714 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35223e16, /127.0.0.1:53236 :> /127.0.0.1:35718] UNREGISTERED
10:20:18.714 [nioEventLoopGroup-372-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-15
10:20:18.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.716 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41e1f719, /127.0.0.1:36768 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.717 [nioEventLoopGroup-388-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:18.717 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41e1f719, /127.0.0.1:36768 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.717 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41e1f719, /127.0.0.1:36768 => /127.0.0.1:42132] FLUSH
10:20:18.718 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.718 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41e1f719, /127.0.0.1:36768 => /127.0.0.1:42132] FLUSH
10:20:18.718 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41e1f719, /127.0.0.1:36768 :> /127.0.0.1:42132] INACTIVE
10:20:18.718 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41e1f719, /127.0.0.1:36768 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.718 [nioEventLoopGroup-397-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-397-1
10:20:18.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.720 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x086abd31, /127.0.0.1:36770 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.721 [nioEventLoopGroup-388-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:18.721 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x086abd31, /127.0.0.1:36770 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.721 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x086abd31, /127.0.0.1:36770 => /127.0.0.1:42132] FLUSH
10:20:18.721 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.721 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x086abd31, /127.0.0.1:36770 => /127.0.0.1:42132] FLUSH
10:20:18.721 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x086abd31, /127.0.0.1:36770 :> /127.0.0.1:42132] INACTIVE
10:20:18.721 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x086abd31, /127.0.0.1:36770 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.721 [nioEventLoopGroup-398-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-398-1
10:20:18.723 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.725 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75a9dd42, /127.0.0.1:36772 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.726 [nioEventLoopGroup-388-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:18.726 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75a9dd42, /127.0.0.1:36772 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.726 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75a9dd42, /127.0.0.1:36772 => /127.0.0.1:42132] FLUSH
10:20:18.727 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.727 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75a9dd42, /127.0.0.1:36772 => /127.0.0.1:42132] FLUSH
10:20:18.727 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75a9dd42, /127.0.0.1:36772 :> /127.0.0.1:42132] INACTIVE
10:20:18.727 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75a9dd42, /127.0.0.1:36772 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.727 [nioEventLoopGroup-399-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-399-1
10:20:18.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.730 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47174767, /127.0.0.1:36774 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.730 [nioEventLoopGroup-388-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:18.731 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47174767, /127.0.0.1:36774 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.731 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47174767, /127.0.0.1:36774 => /127.0.0.1:42132] FLUSH
10:20:18.731 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.731 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47174767, /127.0.0.1:36774 => /127.0.0.1:42132] FLUSH
10:20:18.731 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47174767, /127.0.0.1:36774 :> /127.0.0.1:42132] INACTIVE
10:20:18.731 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47174767, /127.0.0.1:36774 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.731 [nioEventLoopGroup-400-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-400-1
10:20:18.736 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:18.738 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f03bb7, /127.0.0.1:36776 => /127.0.0.1:42132] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:18.739 [nioEventLoopGroup-388-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:18.739 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f03bb7, /127.0.0.1:36776 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.739 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f03bb7, /127.0.0.1:36776 => /127.0.0.1:42132] FLUSH
10:20:18.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.739 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f03bb7, /127.0.0.1:36776 => /127.0.0.1:42132] FLUSH
10:20:18.739 [nioEventLoopGroup-401-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-401-1
10:20:18.740 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f03bb7, /127.0.0.1:36776 :> /127.0.0.1:42132] INACTIVE
10:20:18.740 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71f03bb7, /127.0.0.1:36776 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.747 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88b7170c, /127.0.0.1:36778 => /127.0.0.1:42132] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Host: localhost:42132
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:18.747 [nioEventLoopGroup-388-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42132" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
10:20:18.748 [nioEventLoopGroup-388-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42132" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:18.748 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88b7170c, /127.0.0.1:36778 => /127.0.0.1:42132] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:18.748 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88b7170c, /127.0.0.1:36778 => /127.0.0.1:42132] FLUSH
10:20:18.754 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc2a2258, /127.0.0.1:36780 => /127.0.0.1:42132] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Host: localhost:42132
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:18.755 [nioEventLoopGroup-388-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42132" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
10:20:18.756 [nioEventLoopGroup-388-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42132" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:18.756 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc2a2258, /127.0.0.1:36780 => /127.0.0.1:42132] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:18.756 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc2a2258, /127.0.0.1:36780 => /127.0.0.1:42132] FLUSH
10:20:18.757 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:18.759 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f03efd0, /127.0.0.1:36782 => /127.0.0.1:42132] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42132
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:18.759 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f03efd0, /127.0.0.1:36782 => /127.0.0.1:42132] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:18.760 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f03efd0, /127.0.0.1:36782 => /127.0.0.1:42132] FLUSH
10:20:18.760 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f03efd0, /127.0.0.1:36782 => /127.0.0.1:42132] CLOSE()
10:20:18.760 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:18.761 [nioEventLoopGroup-402-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-402-1
10:20:18.771 [nioEventLoopGroup-388-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-2
10:20:18.771 [nioEventLoopGroup-388-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-11
10:20:18.771 [nioEventLoopGroup-388-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-5
10:20:18.771 [nioEventLoopGroup-388-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-10
10:20:18.771 [nioEventLoopGroup-388-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-7
10:20:18.771 [nioEventLoopGroup-388-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-1
10:20:18.771 [nioEventLoopGroup-388-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-12
10:20:18.771 [nioEventLoopGroup-388-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-4
10:20:18.771 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88b7170c, /127.0.0.1:36778 :> /127.0.0.1:42132] INACTIVE
10:20:18.771 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc2a2258, /127.0.0.1:36780 :> /127.0.0.1:42132] INACTIVE
10:20:18.771 [nioEventLoopGroup-388-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-6
10:20:18.771 [nioEventLoopGroup-388-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-3
10:20:18.771 [nioEventLoopGroup-388-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-8
10:20:18.772 [nioEventLoopGroup-388-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-9
10:20:18.772 [nioEventLoopGroup-388-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-13
10:20:18.779 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88b7170c, /127.0.0.1:36778 :> /127.0.0.1:42132] UNREGISTERED
10:20:18.779 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc2a2258, /127.0.0.1:36780 :> /127.0.0.1:42132] UNREGISTERED
10:20:19.108 [nioEventLoopGroup-372-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-14
10:20:19.133 [MockServer thread for port: 36001] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36001
10:20:19.134 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.137 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d39, /127.0.0.1:36706 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.138 [nioEventLoopGroup-404-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:19.138 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d39, /127.0.0.1:36706 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.138 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d39, /127.0.0.1:36706 => /127.0.0.1:36001] FLUSH
10:20:19.139 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.139 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d39, /127.0.0.1:36706 => /127.0.0.1:36001] FLUSH
10:20:19.139 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d39, /127.0.0.1:36706 :> /127.0.0.1:36001] INACTIVE
10:20:19.139 [nioEventLoopGroup-405-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-405-1
10:20:19.139 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x757b5d39, /127.0.0.1:36706 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.144 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.147 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4249813, /127.0.0.1:36708 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.148 [nioEventLoopGroup-404-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:19.148 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4249813, /127.0.0.1:36708 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.148 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4249813, /127.0.0.1:36708 => /127.0.0.1:36001] FLUSH
10:20:19.148 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4249813, /127.0.0.1:36708 => /127.0.0.1:36001] FLUSH
10:20:19.148 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.149 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4249813, /127.0.0.1:36708 :> /127.0.0.1:36001] INACTIVE
10:20:19.149 [nioEventLoopGroup-406-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-406-1
10:20:19.149 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4249813, /127.0.0.1:36708 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.152 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.154 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258d34ef, /127.0.0.1:36710 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.155 [nioEventLoopGroup-404-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:19.156 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258d34ef, /127.0.0.1:36710 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.156 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258d34ef, /127.0.0.1:36710 => /127.0.0.1:36001] FLUSH
10:20:19.156 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.156 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258d34ef, /127.0.0.1:36710 => /127.0.0.1:36001] FLUSH
10:20:19.156 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258d34ef, /127.0.0.1:36710 :> /127.0.0.1:36001] INACTIVE
10:20:19.156 [nioEventLoopGroup-407-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-407-1
10:20:19.156 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258d34ef, /127.0.0.1:36710 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.160 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.162 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87966b95, /127.0.0.1:36712 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.163 [nioEventLoopGroup-404-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:19.163 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87966b95, /127.0.0.1:36712 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.163 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87966b95, /127.0.0.1:36712 => /127.0.0.1:36001] FLUSH
10:20:19.163 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87966b95, /127.0.0.1:36712 => /127.0.0.1:36001] FLUSH
10:20:19.163 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.164 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87966b95, /127.0.0.1:36712 :> /127.0.0.1:36001] INACTIVE
10:20:19.164 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87966b95, /127.0.0.1:36712 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.164 [nioEventLoopGroup-408-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-408-1
10:20:19.172 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.174 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c94eb7a, /127.0.0.1:36714 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.175 [nioEventLoopGroup-404-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:19.175 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c94eb7a, /127.0.0.1:36714 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.175 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c94eb7a, /127.0.0.1:36714 => /127.0.0.1:36001] FLUSH
10:20:19.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.175 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c94eb7a, /127.0.0.1:36714 => /127.0.0.1:36001] FLUSH
10:20:19.175 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c94eb7a, /127.0.0.1:36714 :> /127.0.0.1:36001] INACTIVE
10:20:19.175 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c94eb7a, /127.0.0.1:36714 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.175 [nioEventLoopGroup-409-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-409-1
10:20:19.176 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.178 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63179288, /127.0.0.1:36716 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.179 [nioEventLoopGroup-404-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:19.179 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63179288, /127.0.0.1:36716 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.179 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63179288, /127.0.0.1:36716 => /127.0.0.1:36001] FLUSH
10:20:19.180 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.180 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63179288, /127.0.0.1:36716 => /127.0.0.1:36001] FLUSH
10:20:19.180 [nioEventLoopGroup-410-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-410-1
10:20:19.180 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63179288, /127.0.0.1:36716 :> /127.0.0.1:36001] INACTIVE
10:20:19.180 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63179288, /127.0.0.1:36716 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.188 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.190 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ca89964, /127.0.0.1:36718 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.191 [nioEventLoopGroup-404-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:19.191 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ca89964, /127.0.0.1:36718 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.191 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ca89964, /127.0.0.1:36718 => /127.0.0.1:36001] FLUSH
10:20:19.191 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.192 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ca89964, /127.0.0.1:36718 => /127.0.0.1:36001] FLUSH
10:20:19.192 [nioEventLoopGroup-411-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-411-1
10:20:19.192 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ca89964, /127.0.0.1:36718 :> /127.0.0.1:36001] INACTIVE
10:20:19.192 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8ca89964, /127.0.0.1:36718 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.198 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.201 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd3f01b0, /127.0.0.1:36720 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.202 [nioEventLoopGroup-404-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:19.202 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd3f01b0, /127.0.0.1:36720 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.202 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd3f01b0, /127.0.0.1:36720 => /127.0.0.1:36001] FLUSH
10:20:19.202 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.202 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd3f01b0, /127.0.0.1:36720 => /127.0.0.1:36001] FLUSH
10:20:19.203 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd3f01b0, /127.0.0.1:36720 :> /127.0.0.1:36001] INACTIVE
10:20:19.203 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd3f01b0, /127.0.0.1:36720 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.203 [nioEventLoopGroup-412-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-412-1
10:20:19.204 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.206 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07efc754, /127.0.0.1:36722 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.207 [nioEventLoopGroup-404-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:19.207 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07efc754, /127.0.0.1:36722 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.207 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07efc754, /127.0.0.1:36722 => /127.0.0.1:36001] FLUSH
10:20:19.208 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.208 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07efc754, /127.0.0.1:36722 => /127.0.0.1:36001] FLUSH
10:20:19.208 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07efc754, /127.0.0.1:36722 :> /127.0.0.1:36001] INACTIVE
10:20:19.208 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07efc754, /127.0.0.1:36722 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.208 [nioEventLoopGroup-413-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-413-1
10:20:19.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.211 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9c3c3e5, /127.0.0.1:36724 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.212 [nioEventLoopGroup-404-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:19.212 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9c3c3e5, /127.0.0.1:36724 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.212 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9c3c3e5, /127.0.0.1:36724 => /127.0.0.1:36001] FLUSH
10:20:19.212 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.213 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9c3c3e5, /127.0.0.1:36724 => /127.0.0.1:36001] FLUSH
10:20:19.213 [nioEventLoopGroup-414-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-414-1
10:20:19.213 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9c3c3e5, /127.0.0.1:36724 :> /127.0.0.1:36001] INACTIVE
10:20:19.213 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9c3c3e5, /127.0.0.1:36724 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.213 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.215 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20efeb91, /127.0.0.1:36726 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.216 [nioEventLoopGroup-404-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:19.216 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20efeb91, /127.0.0.1:36726 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.216 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20efeb91, /127.0.0.1:36726 => /127.0.0.1:36001] FLUSH
10:20:19.216 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.216 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20efeb91, /127.0.0.1:36726 => /127.0.0.1:36001] FLUSH
10:20:19.216 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20efeb91, /127.0.0.1:36726 :> /127.0.0.1:36001] INACTIVE
10:20:19.216 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20efeb91, /127.0.0.1:36726 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.216 [nioEventLoopGroup-415-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-415-1
10:20:19.217 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.219 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97439d3d, /127.0.0.1:36728 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.219 [nioEventLoopGroup-404-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:19.219 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97439d3d, /127.0.0.1:36728 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.220 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97439d3d, /127.0.0.1:36728 => /127.0.0.1:36001] FLUSH
10:20:19.220 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.220 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97439d3d, /127.0.0.1:36728 => /127.0.0.1:36001] FLUSH
10:20:19.220 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97439d3d, /127.0.0.1:36728 :> /127.0.0.1:36001] INACTIVE
10:20:19.220 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97439d3d, /127.0.0.1:36728 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.220 [nioEventLoopGroup-416-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-416-1
10:20:19.221 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.222 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0e4bbc4, /127.0.0.1:36730 => /127.0.0.1:36001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.223 [nioEventLoopGroup-404-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:19.223 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0e4bbc4, /127.0.0.1:36730 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.223 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0e4bbc4, /127.0.0.1:36730 => /127.0.0.1:36001] FLUSH
10:20:19.223 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.223 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0e4bbc4, /127.0.0.1:36730 => /127.0.0.1:36001] FLUSH
10:20:19.223 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0e4bbc4, /127.0.0.1:36730 :> /127.0.0.1:36001] INACTIVE
10:20:19.223 [nioEventLoopGroup-417-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-417-1
10:20:19.224 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0e4bbc4, /127.0.0.1:36730 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.225 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa62e3c69, /127.0.0.1:36732 => /127.0.0.1:36001] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36001
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:19.226 [nioEventLoopGroup-404-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36001" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
10:20:19.226 [nioEventLoopGroup-404-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36001" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:19.226 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa62e3c69, /127.0.0.1:36732 => /127.0.0.1:36001] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:19.227 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa62e3c69, /127.0.0.1:36732 => /127.0.0.1:36001] FLUSH
10:20:19.229 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa62e3c69, /127.0.0.1:36732 => /127.0.0.1:36001] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36001
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:19.230 [nioEventLoopGroup-404-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36001" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
10:20:19.230 [nioEventLoopGroup-404-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36001" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:19.230 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa62e3c69, /127.0.0.1:36732 => /127.0.0.1:36001] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:19.230 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa62e3c69, /127.0.0.1:36732 => /127.0.0.1:36001] FLUSH
10:20:19.231 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:19.233 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93a55701, /127.0.0.1:36734 => /127.0.0.1:36001] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36001
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:19.233 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93a55701, /127.0.0.1:36734 => /127.0.0.1:36001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.233 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93a55701, /127.0.0.1:36734 => /127.0.0.1:36001] FLUSH
10:20:19.233 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93a55701, /127.0.0.1:36734 => /127.0.0.1:36001] CLOSE()
10:20:19.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.234 [nioEventLoopGroup-418-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-418-1
10:20:19.236 [nioEventLoopGroup-404-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-3
10:20:19.236 [nioEventLoopGroup-404-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-1
10:20:19.236 [nioEventLoopGroup-404-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-4
10:20:19.236 [nioEventLoopGroup-404-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-5
10:20:19.236 [nioEventLoopGroup-404-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-6
10:20:19.236 [nioEventLoopGroup-404-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-8
10:20:19.236 [nioEventLoopGroup-404-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-9
10:20:19.236 [nioEventLoopGroup-404-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-7
10:20:19.236 [nioEventLoopGroup-404-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-12
10:20:19.236 [nioEventLoopGroup-404-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-10
10:20:19.237 [nioEventLoopGroup-404-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-11
10:20:19.237 [nioEventLoopGroup-404-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-13
10:20:19.237 [nioEventLoopGroup-404-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-2
10:20:19.239 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa62e3c69, /127.0.0.1:36732 :> /127.0.0.1:36001] INACTIVE
10:20:19.239 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa62e3c69, /127.0.0.1:36732 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.271 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f03efd0, /127.0.0.1:36782 :> /127.0.0.1:42132] FLUSH
10:20:19.271 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f03efd0, /127.0.0.1:36782 :> /127.0.0.1:42132] INACTIVE
10:20:19.272 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3f03efd0, /127.0.0.1:36782 :> /127.0.0.1:42132] UNREGISTERED
10:20:19.272 [nioEventLoopGroup-388-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-16
10:20:19.588 [MockServer thread for port: 40183] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40183
10:20:19.589 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.593 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f5cd7af, /127.0.0.1:43904 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.594 [nioEventLoopGroup-420-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:19.594 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f5cd7af, /127.0.0.1:43904 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.594 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f5cd7af, /127.0.0.1:43904 => /127.0.0.1:40183] FLUSH
10:20:19.595 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.595 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f5cd7af, /127.0.0.1:43904 => /127.0.0.1:40183] FLUSH
10:20:19.595 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f5cd7af, /127.0.0.1:43904 :> /127.0.0.1:40183] INACTIVE
10:20:19.595 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f5cd7af, /127.0.0.1:43904 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.596 [nioEventLoopGroup-421-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-421-1
10:20:19.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.598 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1618233a, /127.0.0.1:43906 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.599 [nioEventLoopGroup-420-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:19.599 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1618233a, /127.0.0.1:43906 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.599 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1618233a, /127.0.0.1:43906 => /127.0.0.1:40183] FLUSH
10:20:19.599 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.599 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1618233a, /127.0.0.1:43906 => /127.0.0.1:40183] FLUSH
10:20:19.599 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1618233a, /127.0.0.1:43906 :> /127.0.0.1:40183] INACTIVE
10:20:19.599 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1618233a, /127.0.0.1:43906 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.599 [nioEventLoopGroup-422-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-422-1
10:20:19.600 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.602 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82db01f, /127.0.0.1:43908 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.602 [nioEventLoopGroup-420-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:19.602 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82db01f, /127.0.0.1:43908 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.602 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82db01f, /127.0.0.1:43908 => /127.0.0.1:40183] FLUSH
10:20:19.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.603 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82db01f, /127.0.0.1:43908 => /127.0.0.1:40183] FLUSH
10:20:19.603 [nioEventLoopGroup-423-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-423-1
10:20:19.603 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82db01f, /127.0.0.1:43908 :> /127.0.0.1:40183] INACTIVE
10:20:19.603 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82db01f, /127.0.0.1:43908 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.604 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.605 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x928b2032, /127.0.0.1:43910 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.606 [nioEventLoopGroup-420-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:19.606 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x928b2032, /127.0.0.1:43910 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.606 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x928b2032, /127.0.0.1:43910 => /127.0.0.1:40183] FLUSH
10:20:19.607 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.607 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x928b2032, /127.0.0.1:43910 => /127.0.0.1:40183] FLUSH
10:20:19.607 [nioEventLoopGroup-424-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-424-1
10:20:19.607 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x928b2032, /127.0.0.1:43910 :> /127.0.0.1:40183] INACTIVE
10:20:19.607 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x928b2032, /127.0.0.1:43910 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.608 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.609 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa49b0ec2, /127.0.0.1:43912 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.610 [nioEventLoopGroup-420-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:19.610 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa49b0ec2, /127.0.0.1:43912 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.610 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa49b0ec2, /127.0.0.1:43912 => /127.0.0.1:40183] FLUSH
10:20:19.610 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.610 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa49b0ec2, /127.0.0.1:43912 => /127.0.0.1:40183] FLUSH
10:20:19.610 [nioEventLoopGroup-425-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-425-1
10:20:19.611 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa49b0ec2, /127.0.0.1:43912 :> /127.0.0.1:40183] INACTIVE
10:20:19.611 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa49b0ec2, /127.0.0.1:43912 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.611 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.613 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178ab385, /127.0.0.1:43914 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.613 [nioEventLoopGroup-420-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:19.614 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178ab385, /127.0.0.1:43914 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.614 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178ab385, /127.0.0.1:43914 => /127.0.0.1:40183] FLUSH
10:20:19.614 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.614 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178ab385, /127.0.0.1:43914 => /127.0.0.1:40183] FLUSH
10:20:19.614 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178ab385, /127.0.0.1:43914 :> /127.0.0.1:40183] INACTIVE
10:20:19.614 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x178ab385, /127.0.0.1:43914 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.614 [nioEventLoopGroup-426-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-426-1
10:20:19.615 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.616 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd2fe52, /127.0.0.1:43916 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.617 [nioEventLoopGroup-420-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:19.617 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd2fe52, /127.0.0.1:43916 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.617 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd2fe52, /127.0.0.1:43916 => /127.0.0.1:40183] FLUSH
10:20:19.617 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.617 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd2fe52, /127.0.0.1:43916 => /127.0.0.1:40183] FLUSH
10:20:19.617 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd2fe52, /127.0.0.1:43916 :> /127.0.0.1:40183] INACTIVE
10:20:19.617 [nioEventLoopGroup-427-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-427-1
10:20:19.617 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fd2fe52, /127.0.0.1:43916 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.619 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.620 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06861744, /127.0.0.1:43918 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.621 [nioEventLoopGroup-420-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:19.621 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06861744, /127.0.0.1:43918 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.621 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06861744, /127.0.0.1:43918 => /127.0.0.1:40183] FLUSH
10:20:19.621 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.621 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06861744, /127.0.0.1:43918 => /127.0.0.1:40183] FLUSH
10:20:19.621 [nioEventLoopGroup-428-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-428-1
10:20:19.621 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06861744, /127.0.0.1:43918 :> /127.0.0.1:40183] INACTIVE
10:20:19.621 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06861744, /127.0.0.1:43918 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.622 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.624 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c767b3f, /127.0.0.1:43920 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.624 [nioEventLoopGroup-420-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:19.624 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c767b3f, /127.0.0.1:43920 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.624 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c767b3f, /127.0.0.1:43920 => /127.0.0.1:40183] FLUSH
10:20:19.624 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.625 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c767b3f, /127.0.0.1:43920 => /127.0.0.1:40183] FLUSH
10:20:19.625 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c767b3f, /127.0.0.1:43920 :> /127.0.0.1:40183] INACTIVE
10:20:19.625 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c767b3f, /127.0.0.1:43920 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.625 [nioEventLoopGroup-429-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-429-1
10:20:19.625 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.627 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d1ab2ee, /127.0.0.1:43922 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.627 [nioEventLoopGroup-420-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:19.627 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d1ab2ee, /127.0.0.1:43922 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.627 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d1ab2ee, /127.0.0.1:43922 => /127.0.0.1:40183] FLUSH
10:20:19.627 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.627 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d1ab2ee, /127.0.0.1:43922 => /127.0.0.1:40183] FLUSH
10:20:19.628 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d1ab2ee, /127.0.0.1:43922 :> /127.0.0.1:40183] INACTIVE
10:20:19.628 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d1ab2ee, /127.0.0.1:43922 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.628 [nioEventLoopGroup-430-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-430-1
10:20:19.628 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.630 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc83572b1, /127.0.0.1:43924 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.630 [nioEventLoopGroup-420-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:19.630 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc83572b1, /127.0.0.1:43924 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.630 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc83572b1, /127.0.0.1:43924 => /127.0.0.1:40183] FLUSH
10:20:19.630 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.630 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc83572b1, /127.0.0.1:43924 => /127.0.0.1:40183] FLUSH
10:20:19.631 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc83572b1, /127.0.0.1:43924 :> /127.0.0.1:40183] INACTIVE
10:20:19.631 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc83572b1, /127.0.0.1:43924 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.631 [nioEventLoopGroup-431-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-431-1
10:20:19.631 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.633 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2985dc16, /127.0.0.1:43926 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.633 [nioEventLoopGroup-420-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:19.633 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2985dc16, /127.0.0.1:43926 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.633 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2985dc16, /127.0.0.1:43926 => /127.0.0.1:40183] FLUSH
10:20:19.634 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.634 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2985dc16, /127.0.0.1:43926 => /127.0.0.1:40183] FLUSH
10:20:19.634 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2985dc16, /127.0.0.1:43926 :> /127.0.0.1:40183] INACTIVE
10:20:19.634 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2985dc16, /127.0.0.1:43926 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.634 [nioEventLoopGroup-432-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-432-1
10:20:19.634 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:19.636 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7d2dce, /127.0.0.1:43928 => /127.0.0.1:40183] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:19.637 [nioEventLoopGroup-420-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:19.637 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7d2dce, /127.0.0.1:43928 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.637 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7d2dce, /127.0.0.1:43928 => /127.0.0.1:40183] FLUSH
10:20:19.637 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.637 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7d2dce, /127.0.0.1:43928 => /127.0.0.1:40183] FLUSH
10:20:19.637 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7d2dce, /127.0.0.1:43928 :> /127.0.0.1:40183] INACTIVE
10:20:19.637 [nioEventLoopGroup-433-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-433-1
10:20:19.637 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7d2dce, /127.0.0.1:43928 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.642 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94df7d43, /127.0.0.1:43930 => /127.0.0.1:40183] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:40183
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:19.643 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:19.643 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:19.643 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:19.643 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
10:20:19.644 [nioEventLoopGroup-420-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:19.644 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94df7d43, /127.0.0.1:43930 => /127.0.0.1:40183] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:19.644 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94df7d43, /127.0.0.1:43930 => /127.0.0.1:40183] FLUSH
10:20:19.648 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x858bad38, /127.0.0.1:43932 => /127.0.0.1:40183] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:40183
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:19.648 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:19.648 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:19.648 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:19.648 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
10:20:19.649 [nioEventLoopGroup-420-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40183" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:19.649 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x858bad38, /127.0.0.1:43932 => /127.0.0.1:40183] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:19.649 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x858bad38, /127.0.0.1:43932 => /127.0.0.1:40183] FLUSH
10:20:19.650 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:19.651 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x001dc716, /127.0.0.1:43934 => /127.0.0.1:40183] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40183
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:19.651 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x001dc716, /127.0.0.1:43934 => /127.0.0.1:40183] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:19.651 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x001dc716, /127.0.0.1:43934 => /127.0.0.1:40183] FLUSH
10:20:19.651 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x001dc716, /127.0.0.1:43934 => /127.0.0.1:40183] CLOSE()
10:20:19.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:19.652 [nioEventLoopGroup-434-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-434-1
10:20:19.653 [nioEventLoopGroup-420-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-2
10:20:19.653 [nioEventLoopGroup-420-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-5
10:20:19.653 [nioEventLoopGroup-420-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-6
10:20:19.653 [nioEventLoopGroup-420-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-1
10:20:19.653 [nioEventLoopGroup-420-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-3
10:20:19.653 [nioEventLoopGroup-420-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-7
10:20:19.653 [nioEventLoopGroup-420-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-4
10:20:19.653 [nioEventLoopGroup-420-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-9
10:20:19.653 [nioEventLoopGroup-420-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-8
10:20:19.653 [nioEventLoopGroup-420-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-12
10:20:19.653 [nioEventLoopGroup-420-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-11
10:20:19.653 [nioEventLoopGroup-420-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-10
10:20:19.653 [nioEventLoopGroup-420-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-13
10:20:19.653 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94df7d43, /127.0.0.1:43930 :> /127.0.0.1:40183] INACTIVE
10:20:19.653 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x858bad38, /127.0.0.1:43932 :> /127.0.0.1:40183] INACTIVE
10:20:19.653 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94df7d43, /127.0.0.1:43930 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.653 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x858bad38, /127.0.0.1:43932 :> /127.0.0.1:40183] UNREGISTERED
10:20:19.737 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93a55701, /127.0.0.1:36734 :> /127.0.0.1:36001] FLUSH
10:20:19.737 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93a55701, /127.0.0.1:36734 :> /127.0.0.1:36001] INACTIVE
10:20:19.737 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93a55701, /127.0.0.1:36734 :> /127.0.0.1:36001] UNREGISTERED
10:20:19.737 [nioEventLoopGroup-404-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-15
10:20:19.781 [nioEventLoopGroup-388-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-14
10:20:19.781 [nioEventLoopGroup-388-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-15
10:20:20.005 [MockServer thread for port: 36499] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36499
10:20:20.006 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.008 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c7646f5, /127.0.0.1:40196 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.008 [nioEventLoopGroup-436-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:20.009 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c7646f5, /127.0.0.1:40196 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.009 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c7646f5, /127.0.0.1:40196 => /127.0.0.1:36499] FLUSH
10:20:20.009 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.009 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c7646f5, /127.0.0.1:40196 => /127.0.0.1:36499] FLUSH
10:20:20.009 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c7646f5, /127.0.0.1:40196 :> /127.0.0.1:36499] INACTIVE
10:20:20.009 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c7646f5, /127.0.0.1:40196 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.009 [nioEventLoopGroup-437-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-437-1
10:20:20.010 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.015 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64a50d8, /127.0.0.1:40198 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.016 [nioEventLoopGroup-436-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:20.016 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64a50d8, /127.0.0.1:40198 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.016 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64a50d8, /127.0.0.1:40198 => /127.0.0.1:36499] FLUSH
10:20:20.017 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.017 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64a50d8, /127.0.0.1:40198 => /127.0.0.1:36499] FLUSH
10:20:20.017 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64a50d8, /127.0.0.1:40198 :> /127.0.0.1:36499] INACTIVE
10:20:20.017 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb64a50d8, /127.0.0.1:40198 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.017 [nioEventLoopGroup-438-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-438-1
10:20:20.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.021 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe063c2ea, /127.0.0.1:40200 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.022 [nioEventLoopGroup-436-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:20.022 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe063c2ea, /127.0.0.1:40200 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.022 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe063c2ea, /127.0.0.1:40200 => /127.0.0.1:36499] FLUSH
10:20:20.023 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.023 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe063c2ea, /127.0.0.1:40200 => /127.0.0.1:36499] FLUSH
10:20:20.023 [nioEventLoopGroup-439-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-439-1
10:20:20.023 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe063c2ea, /127.0.0.1:40200 :> /127.0.0.1:36499] INACTIVE
10:20:20.023 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe063c2ea, /127.0.0.1:40200 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.027 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb7290f6, /127.0.0.1:40202 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.028 [nioEventLoopGroup-436-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:20.028 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb7290f6, /127.0.0.1:40202 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.028 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb7290f6, /127.0.0.1:40202 => /127.0.0.1:36499] FLUSH
10:20:20.029 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.029 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb7290f6, /127.0.0.1:40202 => /127.0.0.1:36499] FLUSH
10:20:20.029 [nioEventLoopGroup-440-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-440-1
10:20:20.029 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb7290f6, /127.0.0.1:40202 :> /127.0.0.1:36499] INACTIVE
10:20:20.029 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb7290f6, /127.0.0.1:40202 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.030 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.032 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0ff58bb, /127.0.0.1:40204 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.033 [nioEventLoopGroup-436-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:20.033 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0ff58bb, /127.0.0.1:40204 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.033 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0ff58bb, /127.0.0.1:40204 => /127.0.0.1:36499] FLUSH
10:20:20.033 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.033 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0ff58bb, /127.0.0.1:40204 => /127.0.0.1:36499] FLUSH
10:20:20.034 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0ff58bb, /127.0.0.1:40204 :> /127.0.0.1:36499] INACTIVE
10:20:20.034 [nioEventLoopGroup-441-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-441-1
10:20:20.034 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0ff58bb, /127.0.0.1:40204 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.035 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.038 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e937342, /127.0.0.1:40206 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.038 [nioEventLoopGroup-436-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:20.039 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e937342, /127.0.0.1:40206 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.039 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e937342, /127.0.0.1:40206 => /127.0.0.1:36499] FLUSH
10:20:20.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.039 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e937342, /127.0.0.1:40206 => /127.0.0.1:36499] FLUSH
10:20:20.039 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e937342, /127.0.0.1:40206 :> /127.0.0.1:36499] INACTIVE
10:20:20.039 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e937342, /127.0.0.1:40206 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.039 [nioEventLoopGroup-442-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-442-1
10:20:20.040 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.056 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a16e70, /127.0.0.1:40208 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.057 [nioEventLoopGroup-436-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:20.057 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a16e70, /127.0.0.1:40208 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.057 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a16e70, /127.0.0.1:40208 => /127.0.0.1:36499] FLUSH
10:20:20.058 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.058 [nioEventLoopGroup-443-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-443-1
10:20:20.059 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a16e70, /127.0.0.1:40208 => /127.0.0.1:36499] FLUSH
10:20:20.059 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a16e70, /127.0.0.1:40208 :> /127.0.0.1:36499] INACTIVE
10:20:20.059 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98a16e70, /127.0.0.1:40208 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.060 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.062 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4aa9a1, /127.0.0.1:40210 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.063 [nioEventLoopGroup-436-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:20.063 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4aa9a1, /127.0.0.1:40210 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.063 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4aa9a1, /127.0.0.1:40210 => /127.0.0.1:36499] FLUSH
10:20:20.063 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.064 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4aa9a1, /127.0.0.1:40210 => /127.0.0.1:36499] FLUSH
10:20:20.064 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4aa9a1, /127.0.0.1:40210 :> /127.0.0.1:36499] INACTIVE
10:20:20.064 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4aa9a1, /127.0.0.1:40210 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.064 [nioEventLoopGroup-444-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-444-1
10:20:20.073 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.076 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd516814b, /127.0.0.1:40212 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.077 [nioEventLoopGroup-436-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:20.077 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd516814b, /127.0.0.1:40212 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.077 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd516814b, /127.0.0.1:40212 => /127.0.0.1:36499] FLUSH
10:20:20.078 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd516814b, /127.0.0.1:40212 => /127.0.0.1:36499] FLUSH
10:20:20.078 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd516814b, /127.0.0.1:40212 :> /127.0.0.1:36499] INACTIVE
10:20:20.078 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd516814b, /127.0.0.1:40212 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.078 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.079 [nioEventLoopGroup-445-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-445-1
10:20:20.083 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.088 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8333a8f7, /127.0.0.1:40214 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.089 [nioEventLoopGroup-436-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:20.089 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8333a8f7, /127.0.0.1:40214 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.089 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8333a8f7, /127.0.0.1:40214 => /127.0.0.1:36499] FLUSH
10:20:20.090 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8333a8f7, /127.0.0.1:40214 => /127.0.0.1:36499] FLUSH
10:20:20.090 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8333a8f7, /127.0.0.1:40214 :> /127.0.0.1:36499] INACTIVE
10:20:20.090 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8333a8f7, /127.0.0.1:40214 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.090 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.090 [nioEventLoopGroup-446-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-446-1
10:20:20.091 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.093 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e15d81b, /127.0.0.1:40216 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.094 [nioEventLoopGroup-436-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:20.094 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e15d81b, /127.0.0.1:40216 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.094 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e15d81b, /127.0.0.1:40216 => /127.0.0.1:36499] FLUSH
10:20:20.095 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e15d81b, /127.0.0.1:40216 => /127.0.0.1:36499] FLUSH
10:20:20.094 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.095 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e15d81b, /127.0.0.1:40216 :> /127.0.0.1:36499] INACTIVE
10:20:20.095 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e15d81b, /127.0.0.1:40216 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.095 [nioEventLoopGroup-447-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-447-1
10:20:20.096 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.098 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610e1594, /127.0.0.1:40218 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.099 [nioEventLoopGroup-436-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:20.099 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610e1594, /127.0.0.1:40218 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.099 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610e1594, /127.0.0.1:40218 => /127.0.0.1:36499] FLUSH
10:20:20.100 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610e1594, /127.0.0.1:40218 => /127.0.0.1:36499] FLUSH
10:20:20.100 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.100 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610e1594, /127.0.0.1:40218 :> /127.0.0.1:36499] INACTIVE
10:20:20.100 [nioEventLoopGroup-448-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-448-1
10:20:20.100 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610e1594, /127.0.0.1:40218 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.120 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.123 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c086d1, /127.0.0.1:40220 => /127.0.0.1:36499] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.124 [nioEventLoopGroup-436-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:20.125 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c086d1, /127.0.0.1:40220 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.125 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c086d1, /127.0.0.1:40220 => /127.0.0.1:36499] FLUSH
10:20:20.125 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.125 [nioEventLoopGroup-449-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-449-1
10:20:20.126 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c086d1, /127.0.0.1:40220 => /127.0.0.1:36499] FLUSH
10:20:20.126 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c086d1, /127.0.0.1:40220 :> /127.0.0.1:36499] INACTIVE
10:20:20.126 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1c086d1, /127.0.0.1:40220 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.130 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c7a02ee, /127.0.0.1:40222 => /127.0.0.1:36499] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36499
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:20.131 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.134 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.136 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:20.137 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
10:20:20.138 [nioEventLoopGroup-436-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:20.139 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c7a02ee, /127.0.0.1:40222 => /127.0.0.1:36499] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:20.139 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c7a02ee, /127.0.0.1:40222 => /127.0.0.1:36499] FLUSH
10:20:20.141 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c7a02ee, /127.0.0.1:40222 => /127.0.0.1:36499] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36499
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:20.141 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.142 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.142 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:20.142 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
10:20:20.142 [nioEventLoopGroup-436-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36499" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:20.142 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c7a02ee, /127.0.0.1:40222 => /127.0.0.1:36499] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:20.142 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c7a02ee, /127.0.0.1:40222 => /127.0.0.1:36499] FLUSH
10:20:20.143 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:20.146 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94d49753, /127.0.0.1:40224 => /127.0.0.1:36499] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36499
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:20.147 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94d49753, /127.0.0.1:40224 => /127.0.0.1:36499] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.147 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94d49753, /127.0.0.1:40224 => /127.0.0.1:36499] FLUSH
10:20:20.147 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94d49753, /127.0.0.1:40224 => /127.0.0.1:36499] CLOSE()
10:20:20.147 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.148 [nioEventLoopGroup-450-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-450-1
10:20:20.153 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x001dc716, /127.0.0.1:43934 :> /127.0.0.1:40183] FLUSH
10:20:20.153 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x001dc716, /127.0.0.1:43934 :> /127.0.0.1:40183] INACTIVE
10:20:20.153 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x001dc716, /127.0.0.1:43934 :> /127.0.0.1:40183] UNREGISTERED
10:20:20.153 [nioEventLoopGroup-420-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-16
10:20:20.157 [nioEventLoopGroup-436-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-5
10:20:20.157 [nioEventLoopGroup-436-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-4
10:20:20.157 [nioEventLoopGroup-436-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-9
10:20:20.157 [nioEventLoopGroup-436-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-1
10:20:20.157 [nioEventLoopGroup-436-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-2
10:20:20.157 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c7a02ee, /127.0.0.1:40222 :> /127.0.0.1:36499] INACTIVE
10:20:20.157 [nioEventLoopGroup-436-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-3
10:20:20.157 [nioEventLoopGroup-436-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-6
10:20:20.157 [nioEventLoopGroup-436-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-7
10:20:20.157 [nioEventLoopGroup-436-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-8
10:20:20.157 [nioEventLoopGroup-436-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-10
10:20:20.158 [nioEventLoopGroup-436-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-11
10:20:20.158 [nioEventLoopGroup-436-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-12
10:20:20.158 [nioEventLoopGroup-436-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-13
10:20:20.178 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c7a02ee, /127.0.0.1:40222 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.240 [nioEventLoopGroup-404-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-14
10:20:20.508 [MockServer thread for port: 36424] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36424
10:20:20.508 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.511 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12989ab8, /127.0.0.1:34456 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.512 [nioEventLoopGroup-452-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:20.512 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12989ab8, /127.0.0.1:34456 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.512 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12989ab8, /127.0.0.1:34456 => /127.0.0.1:36424] FLUSH
10:20:20.513 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.513 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12989ab8, /127.0.0.1:34456 => /127.0.0.1:36424] FLUSH
10:20:20.513 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12989ab8, /127.0.0.1:34456 :> /127.0.0.1:36424] INACTIVE
10:20:20.513 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x12989ab8, /127.0.0.1:34456 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.515 [nioEventLoopGroup-453-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-453-1
10:20:20.518 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.521 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc1602f, /127.0.0.1:34458 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.523 [nioEventLoopGroup-452-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:20.523 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc1602f, /127.0.0.1:34458 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.523 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc1602f, /127.0.0.1:34458 => /127.0.0.1:36424] FLUSH
10:20:20.523 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.524 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc1602f, /127.0.0.1:34458 => /127.0.0.1:36424] FLUSH
10:20:20.524 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc1602f, /127.0.0.1:34458 :> /127.0.0.1:36424] INACTIVE
10:20:20.524 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xddc1602f, /127.0.0.1:34458 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.524 [nioEventLoopGroup-454-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-454-1
10:20:20.527 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.536 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3994ad69, /127.0.0.1:34460 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.537 [nioEventLoopGroup-452-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:20.537 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3994ad69, /127.0.0.1:34460 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.537 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3994ad69, /127.0.0.1:34460 => /127.0.0.1:36424] FLUSH
10:20:20.537 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.538 [nioEventLoopGroup-455-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-455-1
10:20:20.538 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3994ad69, /127.0.0.1:34460 => /127.0.0.1:36424] FLUSH
10:20:20.538 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3994ad69, /127.0.0.1:34460 :> /127.0.0.1:36424] INACTIVE
10:20:20.538 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3994ad69, /127.0.0.1:34460 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.539 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.543 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x297cdbca, /127.0.0.1:34462 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.545 [nioEventLoopGroup-452-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:20.545 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x297cdbca, /127.0.0.1:34462 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.545 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x297cdbca, /127.0.0.1:34462 => /127.0.0.1:36424] FLUSH
10:20:20.545 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.546 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x297cdbca, /127.0.0.1:34462 => /127.0.0.1:36424] FLUSH
10:20:20.546 [nioEventLoopGroup-456-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-456-1
10:20:20.546 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x297cdbca, /127.0.0.1:34462 :> /127.0.0.1:36424] INACTIVE
10:20:20.546 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x297cdbca, /127.0.0.1:34462 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.550 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.553 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8ab71d, /127.0.0.1:34464 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.554 [nioEventLoopGroup-452-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:20.554 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8ab71d, /127.0.0.1:34464 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.554 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8ab71d, /127.0.0.1:34464 => /127.0.0.1:36424] FLUSH
10:20:20.555 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.555 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8ab71d, /127.0.0.1:34464 => /127.0.0.1:36424] FLUSH
10:20:20.555 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8ab71d, /127.0.0.1:34464 :> /127.0.0.1:36424] INACTIVE
10:20:20.555 [nioEventLoopGroup-457-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-457-1
10:20:20.559 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4a8ab71d, /127.0.0.1:34464 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.561 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.564 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9f7a56, /127.0.0.1:34466 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.565 [nioEventLoopGroup-452-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:20.565 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9f7a56, /127.0.0.1:34466 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.565 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9f7a56, /127.0.0.1:34466 => /127.0.0.1:36424] FLUSH
10:20:20.566 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.566 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9f7a56, /127.0.0.1:34466 => /127.0.0.1:36424] FLUSH
10:20:20.566 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9f7a56, /127.0.0.1:34466 :> /127.0.0.1:36424] INACTIVE
10:20:20.566 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c9f7a56, /127.0.0.1:34466 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.568 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.571 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb710607, /127.0.0.1:34468 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.572 [nioEventLoopGroup-452-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:20.572 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb710607, /127.0.0.1:34468 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.572 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb710607, /127.0.0.1:34468 => /127.0.0.1:36424] FLUSH
10:20:20.573 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.573 [nioEventLoopGroup-459-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-459-1
10:20:20.573 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb710607, /127.0.0.1:34468 => /127.0.0.1:36424] FLUSH
10:20:20.573 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb710607, /127.0.0.1:34468 :> /127.0.0.1:36424] INACTIVE
10:20:20.573 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb710607, /127.0.0.1:34468 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.575 [nioEventLoopGroup-458-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-458-1
10:20:20.583 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.585 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa630d412, /127.0.0.1:34470 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.586 [nioEventLoopGroup-452-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:20.586 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa630d412, /127.0.0.1:34470 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.586 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa630d412, /127.0.0.1:34470 => /127.0.0.1:36424] FLUSH
10:20:20.587 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.587 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa630d412, /127.0.0.1:34470 => /127.0.0.1:36424] FLUSH
10:20:20.587 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa630d412, /127.0.0.1:34470 :> /127.0.0.1:36424] INACTIVE
10:20:20.587 [nioEventLoopGroup-460-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-460-1
10:20:20.587 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa630d412, /127.0.0.1:34470 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.605 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.607 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e36eb63, /127.0.0.1:34472 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.608 [nioEventLoopGroup-452-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:20.608 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e36eb63, /127.0.0.1:34472 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.608 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e36eb63, /127.0.0.1:34472 => /127.0.0.1:36424] FLUSH
10:20:20.608 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.609 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e36eb63, /127.0.0.1:34472 => /127.0.0.1:36424] FLUSH
10:20:20.609 [nioEventLoopGroup-461-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-461-1
10:20:20.609 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e36eb63, /127.0.0.1:34472 :> /127.0.0.1:36424] INACTIVE
10:20:20.609 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e36eb63, /127.0.0.1:34472 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.619 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.622 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x043107b4, /127.0.0.1:34474 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.623 [nioEventLoopGroup-452-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:20.623 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x043107b4, /127.0.0.1:34474 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.623 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x043107b4, /127.0.0.1:34474 => /127.0.0.1:36424] FLUSH
10:20:20.624 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.624 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x043107b4, /127.0.0.1:34474 => /127.0.0.1:36424] FLUSH
10:20:20.624 [nioEventLoopGroup-462-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-462-1
10:20:20.624 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x043107b4, /127.0.0.1:34474 :> /127.0.0.1:36424] INACTIVE
10:20:20.624 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x043107b4, /127.0.0.1:34474 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.625 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.627 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc739ca6, /127.0.0.1:34476 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.628 [nioEventLoopGroup-452-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:20.628 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc739ca6, /127.0.0.1:34476 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.628 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc739ca6, /127.0.0.1:34476 => /127.0.0.1:36424] FLUSH
10:20:20.629 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.629 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc739ca6, /127.0.0.1:34476 => /127.0.0.1:36424] FLUSH
10:20:20.629 [nioEventLoopGroup-463-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-463-1
10:20:20.629 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc739ca6, /127.0.0.1:34476 :> /127.0.0.1:36424] INACTIVE
10:20:20.629 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcc739ca6, /127.0.0.1:34476 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.640 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.642 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa69f20be, /127.0.0.1:34478 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.643 [nioEventLoopGroup-452-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:20.644 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa69f20be, /127.0.0.1:34478 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.644 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa69f20be, /127.0.0.1:34478 => /127.0.0.1:36424] FLUSH
10:20:20.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.644 [nioEventLoopGroup-464-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-464-1
10:20:20.645 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa69f20be, /127.0.0.1:34478 => /127.0.0.1:36424] FLUSH
10:20:20.645 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa69f20be, /127.0.0.1:34478 :> /127.0.0.1:36424] INACTIVE
10:20:20.645 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa69f20be, /127.0.0.1:34478 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.648 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:20.651 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748573f7, /127.0.0.1:34480 => /127.0.0.1:36424] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:20.652 [nioEventLoopGroup-452-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:20.652 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748573f7, /127.0.0.1:34480 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.652 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748573f7, /127.0.0.1:34480 => /127.0.0.1:36424] FLUSH
10:20:20.653 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.653 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748573f7, /127.0.0.1:34480 => /127.0.0.1:36424] FLUSH
10:20:20.653 [nioEventLoopGroup-465-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-465-1
10:20:20.653 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748573f7, /127.0.0.1:34480 :> /127.0.0.1:36424] INACTIVE
10:20:20.653 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748573f7, /127.0.0.1:34480 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.654 [nioEventLoopGroup-420-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-14
10:20:20.654 [nioEventLoopGroup-420-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-15
10:20:20.659 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94d49753, /127.0.0.1:40224 :> /127.0.0.1:36499] FLUSH
10:20:20.659 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94d49753, /127.0.0.1:40224 :> /127.0.0.1:36499] INACTIVE
10:20:20.659 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x94d49753, /127.0.0.1:40224 :> /127.0.0.1:36499] UNREGISTERED
10:20:20.659 [nioEventLoopGroup-436-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-15
10:20:20.671 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854f0f15, /127.0.0.1:34482 => /127.0.0.1:36424] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Host: localhost:36424
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:20.672 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.673 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.673 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:20.673 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.674 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
10:20:20.674 [nioEventLoopGroup-452-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:20.674 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854f0f15, /127.0.0.1:34482 => /127.0.0.1:36424] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
10:20:20.675 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854f0f15, /127.0.0.1:34482 => /127.0.0.1:36424] FLUSH
10:20:20.725 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x918043dd, /127.0.0.1:34484 => /127.0.0.1:36424] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Host: localhost:36424
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:20.725 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.725 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.725 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:20.726 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:20.726 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
10:20:20.727 [nioEventLoopGroup-452-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36424" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:20.727 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x918043dd, /127.0.0.1:34484 => /127.0.0.1:36424] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
10:20:20.727 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x918043dd, /127.0.0.1:34484 => /127.0.0.1:36424] FLUSH
10:20:20.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:20.732 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x136f03d3, /127.0.0.1:34486 => /127.0.0.1:36424] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36424
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:20.733 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x136f03d3, /127.0.0.1:34486 => /127.0.0.1:36424] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:20.733 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x136f03d3, /127.0.0.1:34486 => /127.0.0.1:36424] FLUSH
10:20:20.733 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:20.734 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x136f03d3, /127.0.0.1:34486 => /127.0.0.1:36424] CLOSE()
10:20:20.734 [nioEventLoopGroup-466-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-466-1
10:20:20.740 [nioEventLoopGroup-452-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-2
10:20:20.740 [nioEventLoopGroup-452-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-3
10:20:20.740 [nioEventLoopGroup-452-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-1
10:20:20.740 [nioEventLoopGroup-452-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-4
10:20:20.740 [nioEventLoopGroup-452-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-5
10:20:20.740 [nioEventLoopGroup-452-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-6
10:20:20.741 [nioEventLoopGroup-452-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-7
10:20:20.741 [nioEventLoopGroup-452-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-8
10:20:20.741 [nioEventLoopGroup-452-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-9
10:20:20.741 [nioEventLoopGroup-452-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-10
10:20:20.741 [nioEventLoopGroup-452-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-11
10:20:20.741 [nioEventLoopGroup-452-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-12
10:20:20.741 [nioEventLoopGroup-452-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-13
10:20:20.741 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854f0f15, /127.0.0.1:34482 :> /127.0.0.1:36424] INACTIVE
10:20:20.741 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x918043dd, /127.0.0.1:34484 :> /127.0.0.1:36424] INACTIVE
10:20:20.741 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x854f0f15, /127.0.0.1:34482 :> /127.0.0.1:36424] UNREGISTERED
10:20:20.741 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x918043dd, /127.0.0.1:34484 :> /127.0.0.1:36424] UNREGISTERED
10:20:21.092 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.093 [MockServer thread for port: 33158] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33158
10:20:21.094 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x038c7679, /127.0.0.1:41142 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.095 [nioEventLoopGroup-468-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:21.096 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x038c7679, /127.0.0.1:41142 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.096 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x038c7679, /127.0.0.1:41142 => /127.0.0.1:33158] FLUSH
10:20:21.096 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.096 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x038c7679, /127.0.0.1:41142 => /127.0.0.1:33158] FLUSH
10:20:21.096 [nioEventLoopGroup-469-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-469-1
10:20:21.096 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x038c7679, /127.0.0.1:41142 :> /127.0.0.1:33158] INACTIVE
10:20:21.096 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x038c7679, /127.0.0.1:41142 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.098 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.100 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba17ba47, /127.0.0.1:41144 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.101 [nioEventLoopGroup-468-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:21.101 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba17ba47, /127.0.0.1:41144 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.101 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba17ba47, /127.0.0.1:41144 => /127.0.0.1:33158] FLUSH
10:20:21.102 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.102 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba17ba47, /127.0.0.1:41144 => /127.0.0.1:33158] FLUSH
10:20:21.102 [nioEventLoopGroup-470-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-470-1
10:20:21.103 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba17ba47, /127.0.0.1:41144 :> /127.0.0.1:33158] INACTIVE
10:20:21.103 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba17ba47, /127.0.0.1:41144 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.111 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.113 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf035f2d, /127.0.0.1:41146 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.114 [nioEventLoopGroup-468-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:21.114 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf035f2d, /127.0.0.1:41146 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.114 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf035f2d, /127.0.0.1:41146 => /127.0.0.1:33158] FLUSH
10:20:21.115 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.115 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf035f2d, /127.0.0.1:41146 => /127.0.0.1:33158] FLUSH
10:20:21.115 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf035f2d, /127.0.0.1:41146 :> /127.0.0.1:33158] INACTIVE
10:20:21.115 [nioEventLoopGroup-471-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-471-1
10:20:21.115 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf035f2d, /127.0.0.1:41146 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.131 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.134 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80d0642d, /127.0.0.1:41148 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.135 [nioEventLoopGroup-468-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:21.135 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80d0642d, /127.0.0.1:41148 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.135 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80d0642d, /127.0.0.1:41148 => /127.0.0.1:33158] FLUSH
10:20:21.136 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80d0642d, /127.0.0.1:41148 => /127.0.0.1:33158] FLUSH
10:20:21.135 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.136 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80d0642d, /127.0.0.1:41148 :> /127.0.0.1:33158] INACTIVE
10:20:21.136 [nioEventLoopGroup-472-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-472-1
10:20:21.136 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80d0642d, /127.0.0.1:41148 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.137 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.139 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80ccf2b3, /127.0.0.1:41150 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.140 [nioEventLoopGroup-468-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:21.141 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80ccf2b3, /127.0.0.1:41150 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.141 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80ccf2b3, /127.0.0.1:41150 => /127.0.0.1:33158] FLUSH
10:20:21.141 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80ccf2b3, /127.0.0.1:41150 => /127.0.0.1:33158] FLUSH
10:20:21.141 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.141 [nioEventLoopGroup-473-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-473-1
10:20:21.143 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80ccf2b3, /127.0.0.1:41150 :> /127.0.0.1:33158] INACTIVE
10:20:21.143 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80ccf2b3, /127.0.0.1:41150 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.145 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.148 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81bb321a, /127.0.0.1:41152 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.149 [nioEventLoopGroup-468-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:21.149 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81bb321a, /127.0.0.1:41152 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.149 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81bb321a, /127.0.0.1:41152 => /127.0.0.1:33158] FLUSH
10:20:21.149 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.150 [nioEventLoopGroup-474-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-474-1
10:20:21.150 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81bb321a, /127.0.0.1:41152 => /127.0.0.1:33158] FLUSH
10:20:21.150 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81bb321a, /127.0.0.1:41152 :> /127.0.0.1:33158] INACTIVE
10:20:21.150 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x81bb321a, /127.0.0.1:41152 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.151 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.153 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0bd374e, /127.0.0.1:41154 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.154 [nioEventLoopGroup-468-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:21.154 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0bd374e, /127.0.0.1:41154 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.155 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0bd374e, /127.0.0.1:41154 => /127.0.0.1:33158] FLUSH
10:20:21.155 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.155 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0bd374e, /127.0.0.1:41154 => /127.0.0.1:33158] FLUSH
10:20:21.155 [nioEventLoopGroup-475-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-475-1
10:20:21.155 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0bd374e, /127.0.0.1:41154 :> /127.0.0.1:33158] INACTIVE
10:20:21.155 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0bd374e, /127.0.0.1:41154 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.160 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.162 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1812c7fe, /127.0.0.1:41156 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.163 [nioEventLoopGroup-468-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:21.163 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1812c7fe, /127.0.0.1:41156 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.164 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1812c7fe, /127.0.0.1:41156 => /127.0.0.1:33158] FLUSH
10:20:21.164 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.164 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1812c7fe, /127.0.0.1:41156 => /127.0.0.1:33158] FLUSH
10:20:21.164 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1812c7fe, /127.0.0.1:41156 :> /127.0.0.1:33158] INACTIVE
10:20:21.164 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1812c7fe, /127.0.0.1:41156 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.164 [nioEventLoopGroup-476-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-476-1
10:20:21.165 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.168 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa28a3afa, /127.0.0.1:41158 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.169 [nioEventLoopGroup-468-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:21.169 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa28a3afa, /127.0.0.1:41158 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.169 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa28a3afa, /127.0.0.1:41158 => /127.0.0.1:33158] FLUSH
10:20:21.170 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa28a3afa, /127.0.0.1:41158 => /127.0.0.1:33158] FLUSH
10:20:21.169 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.170 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa28a3afa, /127.0.0.1:41158 :> /127.0.0.1:33158] INACTIVE
10:20:21.170 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa28a3afa, /127.0.0.1:41158 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.170 [nioEventLoopGroup-477-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-477-1
10:20:21.176 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.178 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dec3bab, /127.0.0.1:41160 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.179 [nioEventLoopGroup-468-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:21.179 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dec3bab, /127.0.0.1:41160 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.179 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dec3bab, /127.0.0.1:41160 => /127.0.0.1:33158] FLUSH
10:20:21.179 [nioEventLoopGroup-436-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-14
10:20:21.180 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dec3bab, /127.0.0.1:41160 => /127.0.0.1:33158] FLUSH
10:20:21.180 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dec3bab, /127.0.0.1:41160 :> /127.0.0.1:33158] INACTIVE
10:20:21.180 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dec3bab, /127.0.0.1:41160 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.184 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.185 [nioEventLoopGroup-478-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-478-1
10:20:21.195 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.198 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c8dacd0, /127.0.0.1:41162 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.199 [nioEventLoopGroup-468-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:21.200 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c8dacd0, /127.0.0.1:41162 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.200 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c8dacd0, /127.0.0.1:41162 => /127.0.0.1:33158] FLUSH
10:20:21.200 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.200 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c8dacd0, /127.0.0.1:41162 => /127.0.0.1:33158] FLUSH
10:20:21.200 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c8dacd0, /127.0.0.1:41162 :> /127.0.0.1:33158] INACTIVE
10:20:21.200 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c8dacd0, /127.0.0.1:41162 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.200 [nioEventLoopGroup-479-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-479-1
10:20:21.207 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.210 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x471ce6dd, /127.0.0.1:41164 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.211 [nioEventLoopGroup-468-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:21.211 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x471ce6dd, /127.0.0.1:41164 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.212 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x471ce6dd, /127.0.0.1:41164 => /127.0.0.1:33158] FLUSH
10:20:21.212 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.212 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x471ce6dd, /127.0.0.1:41164 => /127.0.0.1:33158] FLUSH
10:20:21.212 [nioEventLoopGroup-480-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-480-1
10:20:21.219 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x471ce6dd, /127.0.0.1:41164 :> /127.0.0.1:33158] INACTIVE
10:20:21.220 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x471ce6dd, /127.0.0.1:41164 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.221 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.224 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbbc28af, /127.0.0.1:41166 => /127.0.0.1:33158] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.228 [nioEventLoopGroup-468-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:21.228 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbbc28af, /127.0.0.1:41166 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.229 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbbc28af, /127.0.0.1:41166 => /127.0.0.1:33158] FLUSH
10:20:21.229 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.229 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbbc28af, /127.0.0.1:41166 => /127.0.0.1:33158] FLUSH
10:20:21.229 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbbc28af, /127.0.0.1:41166 :> /127.0.0.1:33158] INACTIVE
10:20:21.229 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfbbc28af, /127.0.0.1:41166 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.230 [nioEventLoopGroup-481-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-481-1
10:20:21.241 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x136f03d3, /127.0.0.1:34486 :> /127.0.0.1:36424] FLUSH
10:20:21.241 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x136f03d3, /127.0.0.1:34486 :> /127.0.0.1:36424] INACTIVE
10:20:21.241 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x136f03d3, /127.0.0.1:34486 :> /127.0.0.1:36424] UNREGISTERED
10:20:21.241 [nioEventLoopGroup-452-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-16
10:20:21.268 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981cd57b, /127.0.0.1:41168 => /127.0.0.1:33158] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33158
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:21.268 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.269 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.269 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:21.269 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.269 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
10:20:21.270 [nioEventLoopGroup-468-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:21.270 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981cd57b, /127.0.0.1:41168 => /127.0.0.1:33158] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
10:20:21.270 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981cd57b, /127.0.0.1:41168 => /127.0.0.1:33158] FLUSH
10:20:21.279 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981cd57b, /127.0.0.1:41168 => /127.0.0.1:33158] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33158
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:21.280 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.283 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.285 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:21.288 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.291 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
10:20:21.293 [nioEventLoopGroup-468-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33158" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:21.294 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981cd57b, /127.0.0.1:41168 => /127.0.0.1:33158] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
10:20:21.295 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981cd57b, /127.0.0.1:41168 => /127.0.0.1:33158] FLUSH
10:20:21.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:21.308 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38531918, /127.0.0.1:41170 => /127.0.0.1:33158] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33158
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:21.308 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38531918, /127.0.0.1:41170 => /127.0.0.1:33158] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.308 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38531918, /127.0.0.1:41170 => /127.0.0.1:33158] FLUSH
10:20:21.309 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.309 [nioEventLoopGroup-482-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-482-1
10:20:21.309 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38531918, /127.0.0.1:41170 => /127.0.0.1:33158] CLOSE()
10:20:21.316 [nioEventLoopGroup-468-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-2
10:20:21.316 [nioEventLoopGroup-468-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-1
10:20:21.316 [nioEventLoopGroup-468-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-3
10:20:21.316 [nioEventLoopGroup-468-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-4
10:20:21.317 [nioEventLoopGroup-468-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-5
10:20:21.317 [nioEventLoopGroup-468-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-6
10:20:21.317 [nioEventLoopGroup-468-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-7
10:20:21.317 [nioEventLoopGroup-468-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-8
10:20:21.317 [nioEventLoopGroup-468-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-9
10:20:21.317 [nioEventLoopGroup-468-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-10
10:20:21.317 [nioEventLoopGroup-468-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-11
10:20:21.317 [nioEventLoopGroup-468-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-12
10:20:21.317 [nioEventLoopGroup-468-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-13
10:20:21.317 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981cd57b, /127.0.0.1:41168 :> /127.0.0.1:33158] INACTIVE
10:20:21.318 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x981cd57b, /127.0.0.1:41168 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.681 [MockServer thread for port: 36868] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36868
10:20:21.682 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.685 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2b187c7, /127.0.0.1:45488 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.686 [nioEventLoopGroup-484-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:21.686 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2b187c7, /127.0.0.1:45488 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.686 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2b187c7, /127.0.0.1:45488 => /127.0.0.1:36868] FLUSH
10:20:21.687 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.687 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2b187c7, /127.0.0.1:45488 => /127.0.0.1:36868] FLUSH
10:20:21.688 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2b187c7, /127.0.0.1:45488 :> /127.0.0.1:36868] INACTIVE
10:20:21.688 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd2b187c7, /127.0.0.1:45488 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.688 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.689 [nioEventLoopGroup-485-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-485-1
10:20:21.691 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb91753b2, /127.0.0.1:45490 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.693 [nioEventLoopGroup-484-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:21.693 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb91753b2, /127.0.0.1:45490 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.693 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb91753b2, /127.0.0.1:45490 => /127.0.0.1:36868] FLUSH
10:20:21.693 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.694 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb91753b2, /127.0.0.1:45490 => /127.0.0.1:36868] FLUSH
10:20:21.694 [nioEventLoopGroup-486-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-486-1
10:20:21.695 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.695 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb91753b2, /127.0.0.1:45490 :> /127.0.0.1:36868] INACTIVE
10:20:21.695 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb91753b2, /127.0.0.1:45490 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.697 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4cd70c1, /127.0.0.1:45492 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.698 [nioEventLoopGroup-484-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:21.699 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4cd70c1, /127.0.0.1:45492 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.699 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4cd70c1, /127.0.0.1:45492 => /127.0.0.1:36868] FLUSH
10:20:21.699 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.700 [nioEventLoopGroup-487-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-487-1
10:20:21.700 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4cd70c1, /127.0.0.1:45492 => /127.0.0.1:36868] FLUSH
10:20:21.700 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4cd70c1, /127.0.0.1:45492 :> /127.0.0.1:36868] INACTIVE
10:20:21.700 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4cd70c1, /127.0.0.1:45492 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.704 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.710 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e47f5a, /127.0.0.1:45494 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.711 [nioEventLoopGroup-484-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:21.712 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e47f5a, /127.0.0.1:45494 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.712 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e47f5a, /127.0.0.1:45494 => /127.0.0.1:36868] FLUSH
10:20:21.714 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.714 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e47f5a, /127.0.0.1:45494 => /127.0.0.1:36868] FLUSH
10:20:21.715 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e47f5a, /127.0.0.1:45494 :> /127.0.0.1:36868] INACTIVE
10:20:21.715 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x77e47f5a, /127.0.0.1:45494 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.715 [nioEventLoopGroup-488-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-488-1
10:20:21.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.725 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7eab97d, /127.0.0.1:45496 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.727 [nioEventLoopGroup-484-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:21.728 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7eab97d, /127.0.0.1:45496 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.729 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7eab97d, /127.0.0.1:45496 => /127.0.0.1:36868] FLUSH
10:20:21.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.730 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7eab97d, /127.0.0.1:45496 => /127.0.0.1:36868] FLUSH
10:20:21.730 [nioEventLoopGroup-489-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-489-1
10:20:21.731 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7eab97d, /127.0.0.1:45496 :> /127.0.0.1:36868] INACTIVE
10:20:21.731 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7eab97d, /127.0.0.1:45496 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.732 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.736 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x063fe402, /127.0.0.1:45498 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.738 [nioEventLoopGroup-484-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:21.739 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x063fe402, /127.0.0.1:45498 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.740 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x063fe402, /127.0.0.1:45498 => /127.0.0.1:36868] FLUSH
10:20:21.740 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.740 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x063fe402, /127.0.0.1:45498 => /127.0.0.1:36868] FLUSH
10:20:21.740 [nioEventLoopGroup-490-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-490-1
10:20:21.742 [nioEventLoopGroup-452-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-14
10:20:21.742 [nioEventLoopGroup-452-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-15
10:20:21.746 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.746 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x063fe402, /127.0.0.1:45498 :> /127.0.0.1:36868] INACTIVE
10:20:21.749 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x063fe402, /127.0.0.1:45498 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.754 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x306b89e0, /127.0.0.1:45500 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.756 [nioEventLoopGroup-484-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:21.756 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x306b89e0, /127.0.0.1:45500 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.756 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x306b89e0, /127.0.0.1:45500 => /127.0.0.1:36868] FLUSH
10:20:21.756 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.757 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x306b89e0, /127.0.0.1:45500 => /127.0.0.1:36868] FLUSH
10:20:21.757 [nioEventLoopGroup-491-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-491-1
10:20:21.757 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x306b89e0, /127.0.0.1:45500 :> /127.0.0.1:36868] INACTIVE
10:20:21.757 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x306b89e0, /127.0.0.1:45500 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.762 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.764 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaa84272, /127.0.0.1:45502 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.765 [nioEventLoopGroup-484-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:21.765 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaa84272, /127.0.0.1:45502 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.767 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaa84272, /127.0.0.1:45502 => /127.0.0.1:36868] FLUSH
10:20:21.767 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaa84272, /127.0.0.1:45502 => /127.0.0.1:36868] FLUSH
10:20:21.767 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.768 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaa84272, /127.0.0.1:45502 :> /127.0.0.1:36868] INACTIVE
10:20:21.768 [nioEventLoopGroup-492-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-492-1
10:20:21.770 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaa84272, /127.0.0.1:45502 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.772 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.775 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdfe31e2, /127.0.0.1:45504 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.776 [nioEventLoopGroup-484-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:21.776 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdfe31e2, /127.0.0.1:45504 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.776 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdfe31e2, /127.0.0.1:45504 => /127.0.0.1:36868] FLUSH
10:20:21.776 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.777 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdfe31e2, /127.0.0.1:45504 => /127.0.0.1:36868] FLUSH
10:20:21.777 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdfe31e2, /127.0.0.1:45504 :> /127.0.0.1:36868] INACTIVE
10:20:21.777 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdfe31e2, /127.0.0.1:45504 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.777 [nioEventLoopGroup-493-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-493-1
10:20:21.779 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.785 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54c1ab11, /127.0.0.1:45506 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.786 [nioEventLoopGroup-484-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:21.787 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54c1ab11, /127.0.0.1:45506 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.787 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54c1ab11, /127.0.0.1:45506 => /127.0.0.1:36868] FLUSH
10:20:21.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.787 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54c1ab11, /127.0.0.1:45506 => /127.0.0.1:36868] FLUSH
10:20:21.787 [nioEventLoopGroup-494-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-494-1
10:20:21.788 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54c1ab11, /127.0.0.1:45506 :> /127.0.0.1:36868] INACTIVE
10:20:21.788 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54c1ab11, /127.0.0.1:45506 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.795 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.798 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ed2ecb9, /127.0.0.1:45508 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.798 [nioEventLoopGroup-484-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:21.799 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ed2ecb9, /127.0.0.1:45508 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.799 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ed2ecb9, /127.0.0.1:45508 => /127.0.0.1:36868] FLUSH
10:20:21.799 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.799 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ed2ecb9, /127.0.0.1:45508 => /127.0.0.1:36868] FLUSH
10:20:21.799 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ed2ecb9, /127.0.0.1:45508 :> /127.0.0.1:36868] INACTIVE
10:20:21.799 [nioEventLoopGroup-495-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-495-1
10:20:21.800 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ed2ecb9, /127.0.0.1:45508 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.800 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.803 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb581efa8, /127.0.0.1:45510 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.803 [nioEventLoopGroup-484-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:21.804 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb581efa8, /127.0.0.1:45510 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.804 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb581efa8, /127.0.0.1:45510 => /127.0.0.1:36868] FLUSH
10:20:21.804 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.804 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb581efa8, /127.0.0.1:45510 => /127.0.0.1:36868] FLUSH
10:20:21.804 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb581efa8, /127.0.0.1:45510 :> /127.0.0.1:36868] INACTIVE
10:20:21.804 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb581efa8, /127.0.0.1:45510 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.804 [nioEventLoopGroup-496-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-496-1
10:20:21.808 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:21.810 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fc83237, /127.0.0.1:45512 => /127.0.0.1:36868] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:21.811 [nioEventLoopGroup-484-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:21.812 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fc83237, /127.0.0.1:45512 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.812 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fc83237, /127.0.0.1:45512 => /127.0.0.1:36868] FLUSH
10:20:21.812 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.812 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fc83237, /127.0.0.1:45512 => /127.0.0.1:36868] FLUSH
10:20:21.812 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fc83237, /127.0.0.1:45512 :> /127.0.0.1:36868] INACTIVE
10:20:21.812 [nioEventLoopGroup-497-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-497-1
10:20:21.812 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fc83237, /127.0.0.1:45512 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.820 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x820bed6c, /127.0.0.1:45514 => /127.0.0.1:36868] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Host: localhost:36868
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:21.820 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.821 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.821 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:21.821 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.821 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38531918, /127.0.0.1:41170 :> /127.0.0.1:33158] FLUSH
10:20:21.821 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38531918, /127.0.0.1:41170 :> /127.0.0.1:33158] INACTIVE
10:20:21.821 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38531918, /127.0.0.1:41170 :> /127.0.0.1:33158] UNREGISTERED
10:20:21.821 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.822 [nioEventLoopGroup-468-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-15
10:20:21.822 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
10:20:21.822 [nioEventLoopGroup-484-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:21.822 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x820bed6c, /127.0.0.1:45514 => /127.0.0.1:36868] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
10:20:21.822 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x820bed6c, /127.0.0.1:45514 => /127.0.0.1:36868] FLUSH
10:20:21.849 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ac03a70, /127.0.0.1:45516 => /127.0.0.1:36868] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Host: localhost:36868
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:21.849 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.850 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.850 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:21.850 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.850 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:21.851 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
10:20:21.851 [nioEventLoopGroup-484-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36868" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:21.852 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ac03a70, /127.0.0.1:45516 => /127.0.0.1:36868] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
10:20:21.852 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ac03a70, /127.0.0.1:45516 => /127.0.0.1:36868] FLUSH
10:20:21.853 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:21.855 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf966f33a, /127.0.0.1:45518 => /127.0.0.1:36868] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36868
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:21.855 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf966f33a, /127.0.0.1:45518 => /127.0.0.1:36868] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:21.856 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf966f33a, /127.0.0.1:45518 => /127.0.0.1:36868] FLUSH
10:20:21.856 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf966f33a, /127.0.0.1:45518 => /127.0.0.1:36868] CLOSE()
10:20:21.856 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:21.856 [nioEventLoopGroup-498-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-498-1
10:20:21.864 [nioEventLoopGroup-484-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-1
10:20:21.864 [nioEventLoopGroup-484-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-2
10:20:21.864 [nioEventLoopGroup-484-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-9
10:20:21.864 [nioEventLoopGroup-484-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-3
10:20:21.864 [nioEventLoopGroup-484-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-4
10:20:21.864 [nioEventLoopGroup-484-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-5
10:20:21.864 [nioEventLoopGroup-484-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-6
10:20:21.864 [nioEventLoopGroup-484-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-7
10:20:21.864 [nioEventLoopGroup-484-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-8
10:20:21.864 [nioEventLoopGroup-484-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-10
10:20:21.864 [nioEventLoopGroup-484-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-11
10:20:21.864 [nioEventLoopGroup-484-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-12
10:20:21.864 [nioEventLoopGroup-484-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-13
10:20:21.864 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x820bed6c, /127.0.0.1:45514 :> /127.0.0.1:36868] INACTIVE
10:20:21.864 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ac03a70, /127.0.0.1:45516 :> /127.0.0.1:36868] INACTIVE
10:20:21.865 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x820bed6c, /127.0.0.1:45514 :> /127.0.0.1:36868] UNREGISTERED
10:20:21.865 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ac03a70, /127.0.0.1:45516 :> /127.0.0.1:36868] UNREGISTERED
10:20:22.218 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.218 [MockServer thread for port: 33573] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33573
10:20:22.220 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d526bbf, /127.0.0.1:44568 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.221 [nioEventLoopGroup-500-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:22.221 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d526bbf, /127.0.0.1:44568 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.222 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d526bbf, /127.0.0.1:44568 => /127.0.0.1:33573] FLUSH
10:20:22.222 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.222 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d526bbf, /127.0.0.1:44568 => /127.0.0.1:33573] FLUSH
10:20:22.222 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d526bbf, /127.0.0.1:44568 :> /127.0.0.1:33573] INACTIVE
10:20:22.222 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5d526bbf, /127.0.0.1:44568 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.223 [nioEventLoopGroup-501-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-501-1
10:20:22.232 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.235 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb06842b, /127.0.0.1:44570 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.236 [nioEventLoopGroup-500-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:22.236 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb06842b, /127.0.0.1:44570 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.236 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb06842b, /127.0.0.1:44570 => /127.0.0.1:33573] FLUSH
10:20:22.237 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb06842b, /127.0.0.1:44570 => /127.0.0.1:33573] FLUSH
10:20:22.237 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb06842b, /127.0.0.1:44570 :> /127.0.0.1:33573] INACTIVE
10:20:22.237 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb06842b, /127.0.0.1:44570 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.244 [nioEventLoopGroup-502-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-502-1
10:20:22.245 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.248 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa933cd27, /127.0.0.1:44572 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.249 [nioEventLoopGroup-500-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:22.250 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa933cd27, /127.0.0.1:44572 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.250 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa933cd27, /127.0.0.1:44572 => /127.0.0.1:33573] FLUSH
10:20:22.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.250 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa933cd27, /127.0.0.1:44572 => /127.0.0.1:33573] FLUSH
10:20:22.250 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa933cd27, /127.0.0.1:44572 :> /127.0.0.1:33573] INACTIVE
10:20:22.250 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa933cd27, /127.0.0.1:44572 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.250 [nioEventLoopGroup-503-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-503-1
10:20:22.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.259 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe06382a2, /127.0.0.1:44575 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.260 [nioEventLoopGroup-500-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:22.260 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe06382a2, /127.0.0.1:44575 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.260 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe06382a2, /127.0.0.1:44575 => /127.0.0.1:33573] FLUSH
10:20:22.261 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.261 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe06382a2, /127.0.0.1:44575 => /127.0.0.1:33573] FLUSH
10:20:22.261 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe06382a2, /127.0.0.1:44575 :> /127.0.0.1:33573] INACTIVE
10:20:22.261 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe06382a2, /127.0.0.1:44575 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.261 [nioEventLoopGroup-504-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-504-1
10:20:22.263 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.265 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde14aebb, /127.0.0.1:44576 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.266 [nioEventLoopGroup-500-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:22.266 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde14aebb, /127.0.0.1:44576 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.267 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde14aebb, /127.0.0.1:44576 => /127.0.0.1:33573] FLUSH
10:20:22.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.267 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde14aebb, /127.0.0.1:44576 => /127.0.0.1:33573] FLUSH
10:20:22.267 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde14aebb, /127.0.0.1:44576 :> /127.0.0.1:33573] INACTIVE
10:20:22.267 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde14aebb, /127.0.0.1:44576 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.267 [nioEventLoopGroup-505-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-505-1
10:20:22.280 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.282 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ac97907, /127.0.0.1:44578 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.283 [nioEventLoopGroup-500-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:22.283 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ac97907, /127.0.0.1:44578 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.283 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ac97907, /127.0.0.1:44578 => /127.0.0.1:33573] FLUSH
10:20:22.284 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.284 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ac97907, /127.0.0.1:44578 => /127.0.0.1:33573] FLUSH
10:20:22.284 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ac97907, /127.0.0.1:44578 :> /127.0.0.1:33573] INACTIVE
10:20:22.284 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ac97907, /127.0.0.1:44578 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.284 [nioEventLoopGroup-506-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-506-1
10:20:22.286 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.288 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c0109db, /127.0.0.1:44580 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.289 [nioEventLoopGroup-500-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:22.289 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c0109db, /127.0.0.1:44580 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.290 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c0109db, /127.0.0.1:44580 => /127.0.0.1:33573] FLUSH
10:20:22.290 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.290 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c0109db, /127.0.0.1:44580 => /127.0.0.1:33573] FLUSH
10:20:22.290 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c0109db, /127.0.0.1:44580 :> /127.0.0.1:33573] INACTIVE
10:20:22.290 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c0109db, /127.0.0.1:44580 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.290 [nioEventLoopGroup-507-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-507-1
10:20:22.302 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.304 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63e2fc41, /127.0.0.1:44582 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.305 [nioEventLoopGroup-500-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:22.305 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63e2fc41, /127.0.0.1:44582 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.305 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63e2fc41, /127.0.0.1:44582 => /127.0.0.1:33573] FLUSH
10:20:22.306 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.306 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63e2fc41, /127.0.0.1:44582 => /127.0.0.1:33573] FLUSH
10:20:22.306 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63e2fc41, /127.0.0.1:44582 :> /127.0.0.1:33573] INACTIVE
10:20:22.306 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63e2fc41, /127.0.0.1:44582 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.306 [nioEventLoopGroup-508-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-508-1
10:20:22.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.318 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d307048, /127.0.0.1:44584 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.318 [nioEventLoopGroup-500-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:22.319 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d307048, /127.0.0.1:44584 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.319 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d307048, /127.0.0.1:44584 => /127.0.0.1:33573] FLUSH
10:20:22.319 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.319 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d307048, /127.0.0.1:44584 => /127.0.0.1:33573] FLUSH
10:20:22.319 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d307048, /127.0.0.1:44584 :> /127.0.0.1:33573] INACTIVE
10:20:22.319 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d307048, /127.0.0.1:44584 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.319 [nioEventLoopGroup-509-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-509-1
10:20:22.320 [nioEventLoopGroup-468-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-14
10:20:22.321 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.325 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61e7d8c7, /127.0.0.1:44586 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.326 [nioEventLoopGroup-500-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:22.326 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61e7d8c7, /127.0.0.1:44586 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.326 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61e7d8c7, /127.0.0.1:44586 => /127.0.0.1:33573] FLUSH
10:20:22.327 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.327 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61e7d8c7, /127.0.0.1:44586 => /127.0.0.1:33573] FLUSH
10:20:22.327 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61e7d8c7, /127.0.0.1:44586 :> /127.0.0.1:33573] INACTIVE
10:20:22.327 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61e7d8c7, /127.0.0.1:44586 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.327 [nioEventLoopGroup-510-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-510-1
10:20:22.336 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.356 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd69ead5, /127.0.0.1:44588 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.357 [nioEventLoopGroup-500-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:22.357 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd69ead5, /127.0.0.1:44588 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.357 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd69ead5, /127.0.0.1:44588 => /127.0.0.1:33573] FLUSH
10:20:22.358 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.358 [nioEventLoopGroup-511-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-511-1
10:20:22.358 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd69ead5, /127.0.0.1:44588 => /127.0.0.1:33573] FLUSH
10:20:22.358 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd69ead5, /127.0.0.1:44588 :> /127.0.0.1:33573] INACTIVE
10:20:22.358 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd69ead5, /127.0.0.1:44588 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.364 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf966f33a, /127.0.0.1:45518 :> /127.0.0.1:36868] FLUSH
10:20:22.364 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.364 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf966f33a, /127.0.0.1:45518 :> /127.0.0.1:36868] INACTIVE
10:20:22.364 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf966f33a, /127.0.0.1:45518 :> /127.0.0.1:36868] UNREGISTERED
10:20:22.364 [nioEventLoopGroup-484-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-16
10:20:22.367 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c67277, /127.0.0.1:44590 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.368 [nioEventLoopGroup-500-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:22.368 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c67277, /127.0.0.1:44590 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.368 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c67277, /127.0.0.1:44590 => /127.0.0.1:33573] FLUSH
10:20:22.369 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.369 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c67277, /127.0.0.1:44590 => /127.0.0.1:33573] FLUSH
10:20:22.369 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c67277, /127.0.0.1:44590 :> /127.0.0.1:33573] INACTIVE
10:20:22.369 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa9c67277, /127.0.0.1:44590 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.369 [nioEventLoopGroup-512-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-512-1
10:20:22.384 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.387 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a3a8f5d, /127.0.0.1:44592 => /127.0.0.1:33573] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.388 [nioEventLoopGroup-500-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:22.388 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a3a8f5d, /127.0.0.1:44592 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.388 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a3a8f5d, /127.0.0.1:44592 => /127.0.0.1:33573] FLUSH
10:20:22.389 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.389 [nioEventLoopGroup-513-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-513-1
10:20:22.389 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a3a8f5d, /127.0.0.1:44592 => /127.0.0.1:33573] FLUSH
10:20:22.389 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a3a8f5d, /127.0.0.1:44592 :> /127.0.0.1:33573] INACTIVE
10:20:22.389 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a3a8f5d, /127.0.0.1:44592 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.395 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e2cda6, /127.0.0.1:44594 => /127.0.0.1:33573] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33573
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:22.395 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.395 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.396 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:22.396 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.396 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.396 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
10:20:22.397 [nioEventLoopGroup-500-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:22.397 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e2cda6, /127.0.0.1:44594 => /127.0.0.1:33573] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
10:20:22.397 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e2cda6, /127.0.0.1:44594 => /127.0.0.1:33573] FLUSH
10:20:22.399 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e2cda6, /127.0.0.1:44594 => /127.0.0.1:33573] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33573
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:22.400 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.400 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.400 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:22.401 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.401 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.401 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
10:20:22.402 [nioEventLoopGroup-500-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33573" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:22.402 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e2cda6, /127.0.0.1:44594 => /127.0.0.1:33573] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
10:20:22.402 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e2cda6, /127.0.0.1:44594 => /127.0.0.1:33573] FLUSH
10:20:22.403 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:22.405 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a2b01f7, /127.0.0.1:44596 => /127.0.0.1:33573] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33573
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:22.405 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a2b01f7, /127.0.0.1:44596 => /127.0.0.1:33573] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.405 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a2b01f7, /127.0.0.1:44596 => /127.0.0.1:33573] FLUSH
10:20:22.405 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a2b01f7, /127.0.0.1:44596 => /127.0.0.1:33573] CLOSE()
10:20:22.406 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.407 [nioEventLoopGroup-514-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-514-1
10:20:22.422 [nioEventLoopGroup-500-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-2
10:20:22.422 [nioEventLoopGroup-500-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-3
10:20:22.422 [nioEventLoopGroup-500-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-5
10:20:22.422 [nioEventLoopGroup-500-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-9
10:20:22.422 [nioEventLoopGroup-500-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-1
10:20:22.422 [nioEventLoopGroup-500-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-7
10:20:22.422 [nioEventLoopGroup-500-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-8
10:20:22.422 [nioEventLoopGroup-500-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-4
10:20:22.422 [nioEventLoopGroup-500-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-6
10:20:22.422 [nioEventLoopGroup-500-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-10
10:20:22.422 [nioEventLoopGroup-500-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-11
10:20:22.422 [nioEventLoopGroup-500-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-13
10:20:22.422 [nioEventLoopGroup-500-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-12
10:20:22.422 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e2cda6, /127.0.0.1:44594 :> /127.0.0.1:33573] INACTIVE
10:20:22.423 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2e2cda6, /127.0.0.1:44594 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.764 [MockServer thread for port: 36018] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36018
10:20:22.765 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.768 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc41fc530, /127.0.0.1:55120 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.769 [nioEventLoopGroup-516-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:22.770 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc41fc530, /127.0.0.1:55120 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.770 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc41fc530, /127.0.0.1:55120 => /127.0.0.1:36018] FLUSH
10:20:22.770 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.770 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc41fc530, /127.0.0.1:55120 => /127.0.0.1:36018] FLUSH
10:20:22.770 [nioEventLoopGroup-517-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-517-1
10:20:22.770 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc41fc530, /127.0.0.1:55120 :> /127.0.0.1:36018] INACTIVE
10:20:22.770 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc41fc530, /127.0.0.1:55120 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.772 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.773 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd49287a, /127.0.0.1:55122 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.774 [nioEventLoopGroup-516-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:22.774 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd49287a, /127.0.0.1:55122 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.775 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd49287a, /127.0.0.1:55122 => /127.0.0.1:36018] FLUSH
10:20:22.775 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.775 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd49287a, /127.0.0.1:55122 => /127.0.0.1:36018] FLUSH
10:20:22.775 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd49287a, /127.0.0.1:55122 :> /127.0.0.1:36018] INACTIVE
10:20:22.775 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd49287a, /127.0.0.1:55122 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.775 [nioEventLoopGroup-518-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-518-1
10:20:22.776 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.778 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce9cd37, /127.0.0.1:55124 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.778 [nioEventLoopGroup-516-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:22.779 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce9cd37, /127.0.0.1:55124 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.779 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce9cd37, /127.0.0.1:55124 => /127.0.0.1:36018] FLUSH
10:20:22.779 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce9cd37, /127.0.0.1:55124 => /127.0.0.1:36018] FLUSH
10:20:22.779 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.779 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce9cd37, /127.0.0.1:55124 :> /127.0.0.1:36018] INACTIVE
10:20:22.779 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ce9cd37, /127.0.0.1:55124 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.779 [nioEventLoopGroup-519-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-519-1
10:20:22.780 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.782 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x992120f8, /127.0.0.1:55126 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.782 [nioEventLoopGroup-516-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:22.782 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x992120f8, /127.0.0.1:55126 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.782 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x992120f8, /127.0.0.1:55126 => /127.0.0.1:36018] FLUSH
10:20:22.782 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.782 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x992120f8, /127.0.0.1:55126 => /127.0.0.1:36018] FLUSH
10:20:22.782 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x992120f8, /127.0.0.1:55126 :> /127.0.0.1:36018] INACTIVE
10:20:22.783 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x992120f8, /127.0.0.1:55126 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.783 [nioEventLoopGroup-520-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-520-1
10:20:22.783 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.785 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2766932, /127.0.0.1:55128 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.785 [nioEventLoopGroup-516-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:22.785 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2766932, /127.0.0.1:55128 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.785 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2766932, /127.0.0.1:55128 => /127.0.0.1:36018] FLUSH
10:20:22.786 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.786 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2766932, /127.0.0.1:55128 => /127.0.0.1:36018] FLUSH
10:20:22.786 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2766932, /127.0.0.1:55128 :> /127.0.0.1:36018] INACTIVE
10:20:22.786 [nioEventLoopGroup-521-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-521-1
10:20:22.786 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2766932, /127.0.0.1:55128 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.786 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.788 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e96d3a8, /127.0.0.1:55130 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.789 [nioEventLoopGroup-516-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:22.789 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e96d3a8, /127.0.0.1:55130 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.789 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e96d3a8, /127.0.0.1:55130 => /127.0.0.1:36018] FLUSH
10:20:22.789 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.789 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e96d3a8, /127.0.0.1:55130 => /127.0.0.1:36018] FLUSH
10:20:22.789 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e96d3a8, /127.0.0.1:55130 :> /127.0.0.1:36018] INACTIVE
10:20:22.789 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e96d3a8, /127.0.0.1:55130 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.789 [nioEventLoopGroup-522-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-522-1
10:20:22.790 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.791 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4ba80da, /127.0.0.1:55132 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.791 [nioEventLoopGroup-516-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:22.792 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4ba80da, /127.0.0.1:55132 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.792 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4ba80da, /127.0.0.1:55132 => /127.0.0.1:36018] FLUSH
10:20:22.792 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.792 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4ba80da, /127.0.0.1:55132 => /127.0.0.1:36018] FLUSH
10:20:22.792 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4ba80da, /127.0.0.1:55132 :> /127.0.0.1:36018] INACTIVE
10:20:22.792 [nioEventLoopGroup-523-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-523-1
10:20:22.792 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4ba80da, /127.0.0.1:55132 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.793 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.794 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7029f936, /127.0.0.1:55134 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.794 [nioEventLoopGroup-516-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:22.795 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7029f936, /127.0.0.1:55134 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.795 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7029f936, /127.0.0.1:55134 => /127.0.0.1:36018] FLUSH
10:20:22.795 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7029f936, /127.0.0.1:55134 => /127.0.0.1:36018] FLUSH
10:20:22.795 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.795 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7029f936, /127.0.0.1:55134 :> /127.0.0.1:36018] INACTIVE
10:20:22.795 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7029f936, /127.0.0.1:55134 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.795 [nioEventLoopGroup-524-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-524-1
10:20:22.796 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.797 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x381b1f10, /127.0.0.1:55136 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.798 [nioEventLoopGroup-516-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:22.798 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x381b1f10, /127.0.0.1:55136 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.798 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x381b1f10, /127.0.0.1:55136 => /127.0.0.1:36018] FLUSH
10:20:22.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.798 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x381b1f10, /127.0.0.1:55136 => /127.0.0.1:36018] FLUSH
10:20:22.798 [nioEventLoopGroup-525-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-525-1
10:20:22.798 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x381b1f10, /127.0.0.1:55136 :> /127.0.0.1:36018] INACTIVE
10:20:22.798 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x381b1f10, /127.0.0.1:55136 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.799 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.800 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x543052bb, /127.0.0.1:55138 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.801 [nioEventLoopGroup-516-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:22.801 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x543052bb, /127.0.0.1:55138 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.801 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x543052bb, /127.0.0.1:55138 => /127.0.0.1:36018] FLUSH
10:20:22.801 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.801 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x543052bb, /127.0.0.1:55138 => /127.0.0.1:36018] FLUSH
10:20:22.801 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x543052bb, /127.0.0.1:55138 :> /127.0.0.1:36018] INACTIVE
10:20:22.801 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x543052bb, /127.0.0.1:55138 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.801 [nioEventLoopGroup-526-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-526-1
10:20:22.802 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.803 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5152f333, /127.0.0.1:55140 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.804 [nioEventLoopGroup-516-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:22.804 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5152f333, /127.0.0.1:55140 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.804 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5152f333, /127.0.0.1:55140 => /127.0.0.1:36018] FLUSH
10:20:22.804 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.804 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5152f333, /127.0.0.1:55140 => /127.0.0.1:36018] FLUSH
10:20:22.804 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5152f333, /127.0.0.1:55140 :> /127.0.0.1:36018] INACTIVE
10:20:22.804 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5152f333, /127.0.0.1:55140 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.804 [nioEventLoopGroup-527-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-527-1
10:20:22.805 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.806 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c84fd31, /127.0.0.1:55142 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.807 [nioEventLoopGroup-516-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:22.807 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c84fd31, /127.0.0.1:55142 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.807 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c84fd31, /127.0.0.1:55142 => /127.0.0.1:36018] FLUSH
10:20:22.807 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.808 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c84fd31, /127.0.0.1:55142 => /127.0.0.1:36018] FLUSH
10:20:22.808 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c84fd31, /127.0.0.1:55142 :> /127.0.0.1:36018] INACTIVE
10:20:22.808 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c84fd31, /127.0.0.1:55142 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.808 [nioEventLoopGroup-528-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-528-1
10:20:22.808 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:22.810 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11e13b1, /127.0.0.1:55144 => /127.0.0.1:36018] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:22.810 [nioEventLoopGroup-516-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:22.811 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11e13b1, /127.0.0.1:55144 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.811 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11e13b1, /127.0.0.1:55144 => /127.0.0.1:36018] FLUSH
10:20:22.811 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.811 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11e13b1, /127.0.0.1:55144 => /127.0.0.1:36018] FLUSH
10:20:22.811 [nioEventLoopGroup-529-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-529-1
10:20:22.811 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11e13b1, /127.0.0.1:55144 :> /127.0.0.1:36018] INACTIVE
10:20:22.811 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd11e13b1, /127.0.0.1:55144 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.820 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d150823, /127.0.0.1:55146 => /127.0.0.1:36018] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:36018
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Cookie: biscuit=wafer
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:22.827 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36018" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.828 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36018" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.828 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36018" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
10:20:22.828 [nioEventLoopGroup-516-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36018" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
10:20:22.828 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d150823, /127.0.0.1:55146 => /127.0.0.1:36018] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
10:20:22.828 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d150823, /127.0.0.1:55146 => /127.0.0.1:36018] FLUSH
10:20:22.832 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe546d5e0, /127.0.0.1:55148 => /127.0.0.1:36018] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:36018
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Cookie: biscuit=wafer
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:22.833 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36018" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.833 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36018" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:22.833 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36018" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
10:20:22.834 [nioEventLoopGroup-516-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:36018" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
10:20:22.834 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe546d5e0, /127.0.0.1:55148 => /127.0.0.1:36018] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
10:20:22.834 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe546d5e0, /127.0.0.1:55148 => /127.0.0.1:36018] FLUSH
10:20:22.835 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:22.837 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1243a4, /127.0.0.1:55150 => /127.0.0.1:36018] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36018
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:22.837 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1243a4, /127.0.0.1:55150 => /127.0.0.1:36018] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:22.837 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1243a4, /127.0.0.1:55150 => /127.0.0.1:36018] FLUSH
10:20:22.837 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1243a4, /127.0.0.1:55150 => /127.0.0.1:36018] CLOSE()
10:20:22.837 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:22.837 [nioEventLoopGroup-530-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-530-1
10:20:22.838 [nioEventLoopGroup-516-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-2
10:20:22.838 [nioEventLoopGroup-516-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-1
10:20:22.838 [nioEventLoopGroup-516-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-9
10:20:22.838 [nioEventLoopGroup-516-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-13
10:20:22.838 [nioEventLoopGroup-516-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-3
10:20:22.839 [nioEventLoopGroup-516-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-4
10:20:22.839 [nioEventLoopGroup-516-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-5
10:20:22.839 [nioEventLoopGroup-516-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-6
10:20:22.839 [nioEventLoopGroup-516-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-7
10:20:22.839 [nioEventLoopGroup-516-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-8
10:20:22.839 [nioEventLoopGroup-516-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-10
10:20:22.839 [nioEventLoopGroup-516-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-11
10:20:22.839 [nioEventLoopGroup-516-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-12
10:20:22.839 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe546d5e0, /127.0.0.1:55148 :> /127.0.0.1:36018] INACTIVE
10:20:22.839 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d150823, /127.0.0.1:55146 :> /127.0.0.1:36018] INACTIVE
10:20:22.839 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe546d5e0, /127.0.0.1:55148 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.839 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d150823, /127.0.0.1:55146 :> /127.0.0.1:36018] UNREGISTERED
10:20:22.866 [nioEventLoopGroup-484-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-14
10:20:22.866 [nioEventLoopGroup-484-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-15
10:20:22.923 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a2b01f7, /127.0.0.1:44596 :> /127.0.0.1:33573] FLUSH
10:20:22.923 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a2b01f7, /127.0.0.1:44596 :> /127.0.0.1:33573] INACTIVE
10:20:22.923 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1a2b01f7, /127.0.0.1:44596 :> /127.0.0.1:33573] UNREGISTERED
10:20:22.923 [nioEventLoopGroup-500-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-15
10:20:23.192 [MockServer thread for port: 44560] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44560
10:20:23.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.196 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4084d39f, /127.0.0.1:38436 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.197 [nioEventLoopGroup-532-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:23.197 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4084d39f, /127.0.0.1:38436 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.197 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4084d39f, /127.0.0.1:38436 => /127.0.0.1:44560] FLUSH
10:20:23.198 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.198 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4084d39f, /127.0.0.1:38436 => /127.0.0.1:44560] FLUSH
10:20:23.198 [nioEventLoopGroup-533-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-533-1
10:20:23.198 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4084d39f, /127.0.0.1:38436 :> /127.0.0.1:44560] INACTIVE
10:20:23.198 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4084d39f, /127.0.0.1:38436 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.200 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.203 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1f1e814, /127.0.0.1:38438 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.205 [nioEventLoopGroup-532-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:23.205 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1f1e814, /127.0.0.1:38438 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.205 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1f1e814, /127.0.0.1:38438 => /127.0.0.1:44560] FLUSH
10:20:23.206 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1f1e814, /127.0.0.1:38438 => /127.0.0.1:44560] FLUSH
10:20:23.206 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.206 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1f1e814, /127.0.0.1:38438 :> /127.0.0.1:44560] INACTIVE
10:20:23.206 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1f1e814, /127.0.0.1:38438 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.206 [nioEventLoopGroup-534-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-534-1
10:20:23.208 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.211 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44b1f7fa, /127.0.0.1:38440 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.212 [nioEventLoopGroup-532-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:23.212 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44b1f7fa, /127.0.0.1:38440 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.212 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44b1f7fa, /127.0.0.1:38440 => /127.0.0.1:44560] FLUSH
10:20:23.212 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.212 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44b1f7fa, /127.0.0.1:38440 => /127.0.0.1:44560] FLUSH
10:20:23.213 [nioEventLoopGroup-535-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-535-1
10:20:23.213 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44b1f7fa, /127.0.0.1:38440 :> /127.0.0.1:44560] INACTIVE
10:20:23.213 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x44b1f7fa, /127.0.0.1:38440 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.214 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.216 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3f1dad, /127.0.0.1:38442 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.217 [nioEventLoopGroup-532-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:23.217 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3f1dad, /127.0.0.1:38442 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.217 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3f1dad, /127.0.0.1:38442 => /127.0.0.1:44560] FLUSH
10:20:23.218 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.218 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3f1dad, /127.0.0.1:38442 => /127.0.0.1:44560] FLUSH
10:20:23.218 [nioEventLoopGroup-536-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-536-1
10:20:23.218 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3f1dad, /127.0.0.1:38442 :> /127.0.0.1:44560] INACTIVE
10:20:23.218 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb3f1dad, /127.0.0.1:38442 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.219 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.222 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80637840, /127.0.0.1:38444 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.223 [nioEventLoopGroup-532-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:23.223 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80637840, /127.0.0.1:38444 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.223 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80637840, /127.0.0.1:38444 => /127.0.0.1:44560] FLUSH
10:20:23.223 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.223 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80637840, /127.0.0.1:38444 => /127.0.0.1:44560] FLUSH
10:20:23.223 [nioEventLoopGroup-537-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-537-1
10:20:23.223 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80637840, /127.0.0.1:38444 :> /127.0.0.1:44560] INACTIVE
10:20:23.224 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80637840, /127.0.0.1:38444 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.225 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.227 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f59b4d8, /127.0.0.1:38446 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.228 [nioEventLoopGroup-532-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:23.228 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f59b4d8, /127.0.0.1:38446 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.228 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f59b4d8, /127.0.0.1:38446 => /127.0.0.1:44560] FLUSH
10:20:23.229 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.229 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f59b4d8, /127.0.0.1:38446 => /127.0.0.1:44560] FLUSH
10:20:23.229 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f59b4d8, /127.0.0.1:38446 :> /127.0.0.1:44560] INACTIVE
10:20:23.229 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f59b4d8, /127.0.0.1:38446 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.229 [nioEventLoopGroup-538-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-538-1
10:20:23.230 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.232 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ecee9de, /127.0.0.1:38448 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.233 [nioEventLoopGroup-532-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:23.233 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ecee9de, /127.0.0.1:38448 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.233 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ecee9de, /127.0.0.1:38448 => /127.0.0.1:44560] FLUSH
10:20:23.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.233 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ecee9de, /127.0.0.1:38448 => /127.0.0.1:44560] FLUSH
10:20:23.233 [nioEventLoopGroup-539-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-539-1
10:20:23.233 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ecee9de, /127.0.0.1:38448 :> /127.0.0.1:44560] INACTIVE
10:20:23.233 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2ecee9de, /127.0.0.1:38448 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.237 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61a7e2, /127.0.0.1:38450 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.237 [nioEventLoopGroup-532-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:23.237 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61a7e2, /127.0.0.1:38450 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.237 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61a7e2, /127.0.0.1:38450 => /127.0.0.1:44560] FLUSH
10:20:23.238 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.238 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61a7e2, /127.0.0.1:38450 => /127.0.0.1:44560] FLUSH
10:20:23.238 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61a7e2, /127.0.0.1:38450 :> /127.0.0.1:44560] INACTIVE
10:20:23.238 [nioEventLoopGroup-540-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-540-1
10:20:23.238 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61a7e2, /127.0.0.1:38450 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.239 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.241 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf747d20, /127.0.0.1:38452 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.242 [nioEventLoopGroup-532-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:23.242 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf747d20, /127.0.0.1:38452 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.242 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf747d20, /127.0.0.1:38452 => /127.0.0.1:44560] FLUSH
10:20:23.242 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.242 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf747d20, /127.0.0.1:38452 => /127.0.0.1:44560] FLUSH
10:20:23.242 [nioEventLoopGroup-541-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-541-1
10:20:23.242 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf747d20, /127.0.0.1:38452 :> /127.0.0.1:44560] INACTIVE
10:20:23.242 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf747d20, /127.0.0.1:38452 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.245 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9543fd, /127.0.0.1:38454 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.245 [nioEventLoopGroup-532-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:23.246 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9543fd, /127.0.0.1:38454 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.246 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9543fd, /127.0.0.1:38454 => /127.0.0.1:44560] FLUSH
10:20:23.246 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.246 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9543fd, /127.0.0.1:38454 => /127.0.0.1:44560] FLUSH
10:20:23.246 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9543fd, /127.0.0.1:38454 :> /127.0.0.1:44560] INACTIVE
10:20:23.246 [nioEventLoopGroup-542-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-542-1
10:20:23.246 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba9543fd, /127.0.0.1:38454 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.247 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.249 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2db94207, /127.0.0.1:38456 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.249 [nioEventLoopGroup-532-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:23.250 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2db94207, /127.0.0.1:38456 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.250 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2db94207, /127.0.0.1:38456 => /127.0.0.1:44560] FLUSH
10:20:23.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.250 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2db94207, /127.0.0.1:38456 => /127.0.0.1:44560] FLUSH
10:20:23.250 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2db94207, /127.0.0.1:38456 :> /127.0.0.1:44560] INACTIVE
10:20:23.250 [nioEventLoopGroup-543-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-543-1
10:20:23.250 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2db94207, /127.0.0.1:38456 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.252 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cc7ac30, /127.0.0.1:38458 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.253 [nioEventLoopGroup-532-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:23.253 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cc7ac30, /127.0.0.1:38458 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.253 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cc7ac30, /127.0.0.1:38458 => /127.0.0.1:44560] FLUSH
10:20:23.253 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.253 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cc7ac30, /127.0.0.1:38458 => /127.0.0.1:44560] FLUSH
10:20:23.254 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cc7ac30, /127.0.0.1:38458 :> /127.0.0.1:44560] INACTIVE
10:20:23.254 [nioEventLoopGroup-544-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-544-1
10:20:23.254 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0cc7ac30, /127.0.0.1:38458 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.254 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.256 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8220665e, /127.0.0.1:38460 => /127.0.0.1:44560] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.257 [nioEventLoopGroup-532-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:23.257 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8220665e, /127.0.0.1:38460 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.257 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8220665e, /127.0.0.1:38460 => /127.0.0.1:44560] FLUSH
10:20:23.257 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.257 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8220665e, /127.0.0.1:38460 => /127.0.0.1:44560] FLUSH
10:20:23.257 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8220665e, /127.0.0.1:38460 :> /127.0.0.1:44560] INACTIVE
10:20:23.257 [nioEventLoopGroup-545-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-545-1
10:20:23.257 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8220665e, /127.0.0.1:38460 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.261 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88c8178e, /127.0.0.1:38462 => /127.0.0.1:44560] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44560
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
10:20:23.261 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44560" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:23.262 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44560" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:23.262 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44560" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
10:20:23.262 [nioEventLoopGroup-532-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44560" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
10:20:23.262 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88c8178e, /127.0.0.1:38462 => /127.0.0.1:44560] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
10:20:23.263 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88c8178e, /127.0.0.1:38462 => /127.0.0.1:44560] FLUSH
10:20:23.264 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88c8178e, /127.0.0.1:38462 => /127.0.0.1:44560] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44560
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
10:20:23.265 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44560" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:23.265 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44560" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:23.265 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44560" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
10:20:23.266 [nioEventLoopGroup-532-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44560" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
10:20:23.266 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88c8178e, /127.0.0.1:38462 => /127.0.0.1:44560] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
10:20:23.266 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88c8178e, /127.0.0.1:38462 => /127.0.0.1:44560] FLUSH
10:20:23.266 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:23.268 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc91c10f, /127.0.0.1:38464 => /127.0.0.1:44560] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44560
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:23.268 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc91c10f, /127.0.0.1:38464 => /127.0.0.1:44560] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.268 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc91c10f, /127.0.0.1:38464 => /127.0.0.1:44560] FLUSH
10:20:23.268 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc91c10f, /127.0.0.1:38464 => /127.0.0.1:44560] CLOSE()
10:20:23.268 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.269 [nioEventLoopGroup-546-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-546-1
10:20:23.270 [nioEventLoopGroup-532-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-1
10:20:23.270 [nioEventLoopGroup-532-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-4
10:20:23.270 [nioEventLoopGroup-532-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-5
10:20:23.270 [nioEventLoopGroup-532-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-2
10:20:23.270 [nioEventLoopGroup-532-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-13
10:20:23.270 [nioEventLoopGroup-532-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-7
10:20:23.270 [nioEventLoopGroup-532-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-10
10:20:23.270 [nioEventLoopGroup-532-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-11
10:20:23.270 [nioEventLoopGroup-532-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-9
10:20:23.270 [nioEventLoopGroup-532-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-8
10:20:23.270 [nioEventLoopGroup-532-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-3
10:20:23.270 [nioEventLoopGroup-532-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-6
10:20:23.270 [nioEventLoopGroup-532-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-12
10:20:23.270 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88c8178e, /127.0.0.1:38462 :> /127.0.0.1:44560] INACTIVE
10:20:23.271 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88c8178e, /127.0.0.1:38462 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.339 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1243a4, /127.0.0.1:55150 :> /127.0.0.1:36018] FLUSH
10:20:23.339 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1243a4, /127.0.0.1:55150 :> /127.0.0.1:36018] INACTIVE
10:20:23.339 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1243a4, /127.0.0.1:55150 :> /127.0.0.1:36018] UNREGISTERED
10:20:23.339 [nioEventLoopGroup-516-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-16
10:20:23.425 [nioEventLoopGroup-500-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-14
10:20:23.624 [MockServer thread for port: 35396] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35396
10:20:23.624 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.632 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e979af3, /127.0.0.1:44916 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.633 [nioEventLoopGroup-548-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:23.634 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e979af3, /127.0.0.1:44916 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.634 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e979af3, /127.0.0.1:44916 => /127.0.0.1:35396] FLUSH
10:20:23.634 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.634 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e979af3, /127.0.0.1:44916 => /127.0.0.1:35396] FLUSH
10:20:23.635 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e979af3, /127.0.0.1:44916 :> /127.0.0.1:35396] INACTIVE
10:20:23.635 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1e979af3, /127.0.0.1:44916 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.635 [nioEventLoopGroup-549-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-549-1
10:20:23.637 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.640 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a728ef2, /127.0.0.1:44919 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.642 [nioEventLoopGroup-548-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:23.642 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a728ef2, /127.0.0.1:44919 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.642 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a728ef2, /127.0.0.1:44919 => /127.0.0.1:35396] FLUSH
10:20:23.643 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.643 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a728ef2, /127.0.0.1:44919 => /127.0.0.1:35396] FLUSH
10:20:23.643 [nioEventLoopGroup-550-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-550-1
10:20:23.643 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a728ef2, /127.0.0.1:44919 :> /127.0.0.1:35396] INACTIVE
10:20:23.643 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a728ef2, /127.0.0.1:44919 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.645 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.648 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc6edb01, /127.0.0.1:44920 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.649 [nioEventLoopGroup-548-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:23.649 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc6edb01, /127.0.0.1:44920 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.650 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc6edb01, /127.0.0.1:44920 => /127.0.0.1:35396] FLUSH
10:20:23.650 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.650 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc6edb01, /127.0.0.1:44920 => /127.0.0.1:35396] FLUSH
10:20:23.650 [nioEventLoopGroup-551-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-551-1
10:20:23.650 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc6edb01, /127.0.0.1:44920 :> /127.0.0.1:35396] INACTIVE
10:20:23.650 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc6edb01, /127.0.0.1:44920 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.655 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x519ab0fa, /127.0.0.1:44922 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.656 [nioEventLoopGroup-548-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:23.656 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x519ab0fa, /127.0.0.1:44922 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.656 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x519ab0fa, /127.0.0.1:44922 => /127.0.0.1:35396] FLUSH
10:20:23.657 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.657 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x519ab0fa, /127.0.0.1:44922 => /127.0.0.1:35396] FLUSH
10:20:23.657 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x519ab0fa, /127.0.0.1:44922 :> /127.0.0.1:35396] INACTIVE
10:20:23.657 [nioEventLoopGroup-552-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-552-1
10:20:23.657 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x519ab0fa, /127.0.0.1:44922 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.659 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.661 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c02b38d, /127.0.0.1:44924 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.662 [nioEventLoopGroup-548-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:23.663 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c02b38d, /127.0.0.1:44924 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.663 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c02b38d, /127.0.0.1:44924 => /127.0.0.1:35396] FLUSH
10:20:23.663 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.663 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c02b38d, /127.0.0.1:44924 => /127.0.0.1:35396] FLUSH
10:20:23.663 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c02b38d, /127.0.0.1:44924 :> /127.0.0.1:35396] INACTIVE
10:20:23.663 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0c02b38d, /127.0.0.1:44924 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.663 [nioEventLoopGroup-553-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-553-1
10:20:23.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.668 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c77bc3a, /127.0.0.1:44926 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.669 [nioEventLoopGroup-548-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:23.669 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c77bc3a, /127.0.0.1:44926 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.670 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c77bc3a, /127.0.0.1:44926 => /127.0.0.1:35396] FLUSH
10:20:23.670 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.670 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c77bc3a, /127.0.0.1:44926 => /127.0.0.1:35396] FLUSH
10:20:23.670 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c77bc3a, /127.0.0.1:44926 :> /127.0.0.1:35396] INACTIVE
10:20:23.670 [nioEventLoopGroup-554-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-554-1
10:20:23.670 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c77bc3a, /127.0.0.1:44926 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.673 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.675 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0934aa82, /127.0.0.1:44928 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.676 [nioEventLoopGroup-548-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:23.676 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0934aa82, /127.0.0.1:44928 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.676 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0934aa82, /127.0.0.1:44928 => /127.0.0.1:35396] FLUSH
10:20:23.676 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.677 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0934aa82, /127.0.0.1:44928 => /127.0.0.1:35396] FLUSH
10:20:23.677 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0934aa82, /127.0.0.1:44928 :> /127.0.0.1:35396] INACTIVE
10:20:23.677 [nioEventLoopGroup-555-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-555-1
10:20:23.677 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0934aa82, /127.0.0.1:44928 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.678 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.681 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a45f1f, /127.0.0.1:44930 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.682 [nioEventLoopGroup-548-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:23.682 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a45f1f, /127.0.0.1:44930 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.682 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a45f1f, /127.0.0.1:44930 => /127.0.0.1:35396] FLUSH
10:20:23.682 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.682 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a45f1f, /127.0.0.1:44930 => /127.0.0.1:35396] FLUSH
10:20:23.682 [nioEventLoopGroup-556-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-556-1
10:20:23.682 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a45f1f, /127.0.0.1:44930 :> /127.0.0.1:35396] INACTIVE
10:20:23.683 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a45f1f, /127.0.0.1:44930 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.684 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.686 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f1f748, /127.0.0.1:44932 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.687 [nioEventLoopGroup-548-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:23.687 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f1f748, /127.0.0.1:44932 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.687 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f1f748, /127.0.0.1:44932 => /127.0.0.1:35396] FLUSH
10:20:23.687 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.687 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f1f748, /127.0.0.1:44932 => /127.0.0.1:35396] FLUSH
10:20:23.687 [nioEventLoopGroup-557-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-557-1
10:20:23.687 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f1f748, /127.0.0.1:44932 :> /127.0.0.1:35396] INACTIVE
10:20:23.688 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55f1f748, /127.0.0.1:44932 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.689 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.691 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dedcf4f, /127.0.0.1:44934 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.692 [nioEventLoopGroup-548-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:23.692 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dedcf4f, /127.0.0.1:44934 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.692 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dedcf4f, /127.0.0.1:44934 => /127.0.0.1:35396] FLUSH
10:20:23.692 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.692 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dedcf4f, /127.0.0.1:44934 => /127.0.0.1:35396] FLUSH
10:20:23.692 [nioEventLoopGroup-558-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-558-1
10:20:23.692 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dedcf4f, /127.0.0.1:44934 :> /127.0.0.1:35396] INACTIVE
10:20:23.692 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dedcf4f, /127.0.0.1:44934 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.693 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.696 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef619912, /127.0.0.1:44936 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.696 [nioEventLoopGroup-548-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:23.697 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef619912, /127.0.0.1:44936 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.697 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef619912, /127.0.0.1:44936 => /127.0.0.1:35396] FLUSH
10:20:23.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.697 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef619912, /127.0.0.1:44936 => /127.0.0.1:35396] FLUSH
10:20:23.697 [nioEventLoopGroup-559-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-559-1
10:20:23.697 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef619912, /127.0.0.1:44936 :> /127.0.0.1:35396] INACTIVE
10:20:23.697 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef619912, /127.0.0.1:44936 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.698 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.700 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb49a3a1e, /127.0.0.1:44938 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.701 [nioEventLoopGroup-548-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:23.701 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb49a3a1e, /127.0.0.1:44938 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.701 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb49a3a1e, /127.0.0.1:44938 => /127.0.0.1:35396] FLUSH
10:20:23.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.702 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb49a3a1e, /127.0.0.1:44938 => /127.0.0.1:35396] FLUSH
10:20:23.702 [nioEventLoopGroup-560-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-560-1
10:20:23.702 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb49a3a1e, /127.0.0.1:44938 :> /127.0.0.1:35396] INACTIVE
10:20:23.702 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb49a3a1e, /127.0.0.1:44938 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:23.705 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2acfe74, /127.0.0.1:44940 => /127.0.0.1:35396] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:23.706 [nioEventLoopGroup-548-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:23.706 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2acfe74, /127.0.0.1:44940 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.706 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2acfe74, /127.0.0.1:44940 => /127.0.0.1:35396] FLUSH
10:20:23.706 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.706 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2acfe74, /127.0.0.1:44940 => /127.0.0.1:35396] FLUSH
10:20:23.707 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2acfe74, /127.0.0.1:44940 :> /127.0.0.1:35396] INACTIVE
10:20:23.707 [nioEventLoopGroup-561-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-561-1
10:20:23.707 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2acfe74, /127.0.0.1:44940 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.716 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fc14846, /127.0.0.1:44942 => /127.0.0.1:35396] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Host: localhost:35396
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:23.717 [nioEventLoopGroup-548-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35396" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:23.717 [nioEventLoopGroup-548-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35396" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
10:20:23.718 [nioEventLoopGroup-548-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35396" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:23.718 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fc14846, /127.0.0.1:44942 => /127.0.0.1:35396] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
10:20:23.718 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fc14846, /127.0.0.1:44942 => /127.0.0.1:35396] FLUSH
10:20:23.722 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9df31237, /127.0.0.1:44944 => /127.0.0.1:35396] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Host: localhost:35396
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:23.723 [nioEventLoopGroup-548-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35396" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:23.723 [nioEventLoopGroup-548-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35396" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
10:20:23.724 [nioEventLoopGroup-548-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:35396" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:23.724 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9df31237, /127.0.0.1:44944 => /127.0.0.1:35396] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
10:20:23.724 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9df31237, /127.0.0.1:44944 => /127.0.0.1:35396] FLUSH
10:20:23.725 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:23.726 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fca8d7, /127.0.0.1:44946 => /127.0.0.1:35396] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35396
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:23.726 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fca8d7, /127.0.0.1:44946 => /127.0.0.1:35396] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:23.727 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fca8d7, /127.0.0.1:44946 => /127.0.0.1:35396] FLUSH
10:20:23.727 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fca8d7, /127.0.0.1:44946 => /127.0.0.1:35396] CLOSE()
10:20:23.727 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:23.727 [nioEventLoopGroup-562-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-562-1
10:20:23.728 [nioEventLoopGroup-548-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-2
10:20:23.728 [nioEventLoopGroup-548-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-1
10:20:23.728 [nioEventLoopGroup-548-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-4
10:20:23.728 [nioEventLoopGroup-548-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-5
10:20:23.728 [nioEventLoopGroup-548-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-6
10:20:23.728 [nioEventLoopGroup-548-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-8
10:20:23.728 [nioEventLoopGroup-548-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-3
10:20:23.728 [nioEventLoopGroup-548-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-7
10:20:23.728 [nioEventLoopGroup-548-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-9
10:20:23.728 [nioEventLoopGroup-548-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-10
10:20:23.728 [nioEventLoopGroup-548-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-11
10:20:23.728 [nioEventLoopGroup-548-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-12
10:20:23.729 [nioEventLoopGroup-548-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-13
10:20:23.729 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fc14846, /127.0.0.1:44942 :> /127.0.0.1:35396] INACTIVE
10:20:23.729 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9df31237, /127.0.0.1:44944 :> /127.0.0.1:35396] INACTIVE
10:20:23.729 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fc14846, /127.0.0.1:44942 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.729 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9df31237, /127.0.0.1:44944 :> /127.0.0.1:35396] UNREGISTERED
10:20:23.771 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc91c10f, /127.0.0.1:38464 :> /127.0.0.1:44560] FLUSH
10:20:23.771 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc91c10f, /127.0.0.1:38464 :> /127.0.0.1:44560] INACTIVE
10:20:23.771 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc91c10f, /127.0.0.1:38464 :> /127.0.0.1:44560] UNREGISTERED
10:20:23.771 [nioEventLoopGroup-532-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-15
10:20:23.840 [nioEventLoopGroup-516-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-15
10:20:23.840 [nioEventLoopGroup-516-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-14
10:20:24.082 [MockServer thread for port: 33034] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33034
10:20:24.083 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.086 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd493ed6d, /127.0.0.1:32976 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.087 [nioEventLoopGroup-564-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:24.088 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd493ed6d, /127.0.0.1:32976 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.088 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd493ed6d, /127.0.0.1:32976 => /127.0.0.1:33034] FLUSH
10:20:24.088 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.088 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd493ed6d, /127.0.0.1:32976 => /127.0.0.1:33034] FLUSH
10:20:24.089 [nioEventLoopGroup-565-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-565-1
10:20:24.089 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd493ed6d, /127.0.0.1:32976 :> /127.0.0.1:33034] INACTIVE
10:20:24.089 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd493ed6d, /127.0.0.1:32976 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.090 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.093 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x842af79c, /127.0.0.1:32978 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.094 [nioEventLoopGroup-564-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:24.095 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x842af79c, /127.0.0.1:32978 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.095 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x842af79c, /127.0.0.1:32978 => /127.0.0.1:33034] FLUSH
10:20:24.095 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.096 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x842af79c, /127.0.0.1:32978 => /127.0.0.1:33034] FLUSH
10:20:24.096 [nioEventLoopGroup-566-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-566-1
10:20:24.096 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x842af79c, /127.0.0.1:32978 :> /127.0.0.1:33034] INACTIVE
10:20:24.096 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x842af79c, /127.0.0.1:32978 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.098 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.101 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce0fd30a, /127.0.0.1:32980 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.102 [nioEventLoopGroup-564-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:24.103 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce0fd30a, /127.0.0.1:32980 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.103 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce0fd30a, /127.0.0.1:32980 => /127.0.0.1:33034] FLUSH
10:20:24.103 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.103 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce0fd30a, /127.0.0.1:32980 => /127.0.0.1:33034] FLUSH
10:20:24.103 [nioEventLoopGroup-567-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-567-1
10:20:24.103 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce0fd30a, /127.0.0.1:32980 :> /127.0.0.1:33034] INACTIVE
10:20:24.104 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce0fd30a, /127.0.0.1:32980 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.105 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.108 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb372c207, /127.0.0.1:32982 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.109 [nioEventLoopGroup-564-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:24.109 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb372c207, /127.0.0.1:32982 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.109 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb372c207, /127.0.0.1:32982 => /127.0.0.1:33034] FLUSH
10:20:24.109 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.109 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb372c207, /127.0.0.1:32982 => /127.0.0.1:33034] FLUSH
10:20:24.110 [nioEventLoopGroup-568-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-568-1
10:20:24.110 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb372c207, /127.0.0.1:32982 :> /127.0.0.1:33034] INACTIVE
10:20:24.110 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb372c207, /127.0.0.1:32982 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.111 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.113 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd932850d, /127.0.0.1:32984 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.114 [nioEventLoopGroup-564-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:24.114 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd932850d, /127.0.0.1:32984 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.114 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd932850d, /127.0.0.1:32984 => /127.0.0.1:33034] FLUSH
10:20:24.115 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.115 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd932850d, /127.0.0.1:32984 => /127.0.0.1:33034] FLUSH
10:20:24.115 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd932850d, /127.0.0.1:32984 :> /127.0.0.1:33034] INACTIVE
10:20:24.115 [nioEventLoopGroup-569-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-569-1
10:20:24.115 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd932850d, /127.0.0.1:32984 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.116 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.119 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee9abc12, /127.0.0.1:32986 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.120 [nioEventLoopGroup-564-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:24.120 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee9abc12, /127.0.0.1:32986 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.120 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee9abc12, /127.0.0.1:32986 => /127.0.0.1:33034] FLUSH
10:20:24.120 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.120 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee9abc12, /127.0.0.1:32986 => /127.0.0.1:33034] FLUSH
10:20:24.121 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee9abc12, /127.0.0.1:32986 :> /127.0.0.1:33034] INACTIVE
10:20:24.121 [nioEventLoopGroup-570-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-570-1
10:20:24.121 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee9abc12, /127.0.0.1:32986 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.122 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.124 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c30baa, /127.0.0.1:32988 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.125 [nioEventLoopGroup-564-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:24.125 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c30baa, /127.0.0.1:32988 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.125 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c30baa, /127.0.0.1:32988 => /127.0.0.1:33034] FLUSH
10:20:24.125 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.125 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c30baa, /127.0.0.1:32988 => /127.0.0.1:33034] FLUSH
10:20:24.125 [nioEventLoopGroup-571-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-571-1
10:20:24.125 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c30baa, /127.0.0.1:32988 :> /127.0.0.1:33034] INACTIVE
10:20:24.125 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8c30baa, /127.0.0.1:32988 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.126 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.138 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2de4bce8, /127.0.0.1:32990 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.139 [nioEventLoopGroup-564-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:24.139 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2de4bce8, /127.0.0.1:32990 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.139 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2de4bce8, /127.0.0.1:32990 => /127.0.0.1:33034] FLUSH
10:20:24.139 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.140 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2de4bce8, /127.0.0.1:32990 => /127.0.0.1:33034] FLUSH
10:20:24.140 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2de4bce8, /127.0.0.1:32990 :> /127.0.0.1:33034] INACTIVE
10:20:24.140 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2de4bce8, /127.0.0.1:32990 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.140 [nioEventLoopGroup-572-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-572-1
10:20:24.143 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.145 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36f3ed18, /127.0.0.1:32992 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.146 [nioEventLoopGroup-564-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:24.146 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36f3ed18, /127.0.0.1:32992 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.146 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36f3ed18, /127.0.0.1:32992 => /127.0.0.1:33034] FLUSH
10:20:24.146 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.146 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36f3ed18, /127.0.0.1:32992 => /127.0.0.1:33034] FLUSH
10:20:24.146 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36f3ed18, /127.0.0.1:32992 :> /127.0.0.1:33034] INACTIVE
10:20:24.146 [nioEventLoopGroup-573-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-573-1
10:20:24.146 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36f3ed18, /127.0.0.1:32992 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.147 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.149 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceed8ac8, /127.0.0.1:32994 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.149 [nioEventLoopGroup-564-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:24.150 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceed8ac8, /127.0.0.1:32994 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.150 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceed8ac8, /127.0.0.1:32994 => /127.0.0.1:33034] FLUSH
10:20:24.150 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.150 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceed8ac8, /127.0.0.1:32994 => /127.0.0.1:33034] FLUSH
10:20:24.150 [nioEventLoopGroup-574-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-574-1
10:20:24.150 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceed8ac8, /127.0.0.1:32994 :> /127.0.0.1:33034] INACTIVE
10:20:24.150 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceed8ac8, /127.0.0.1:32994 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.151 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.153 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b25fbc, /127.0.0.1:32996 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.153 [nioEventLoopGroup-564-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:24.153 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b25fbc, /127.0.0.1:32996 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.153 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b25fbc, /127.0.0.1:32996 => /127.0.0.1:33034] FLUSH
10:20:24.154 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.154 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b25fbc, /127.0.0.1:32996 => /127.0.0.1:33034] FLUSH
10:20:24.154 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b25fbc, /127.0.0.1:32996 :> /127.0.0.1:33034] INACTIVE
10:20:24.154 [nioEventLoopGroup-575-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-575-1
10:20:24.154 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b25fbc, /127.0.0.1:32996 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.155 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.156 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d9dd3c3, /127.0.0.1:32998 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.157 [nioEventLoopGroup-564-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:24.157 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d9dd3c3, /127.0.0.1:32998 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.157 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d9dd3c3, /127.0.0.1:32998 => /127.0.0.1:33034] FLUSH
10:20:24.157 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.157 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d9dd3c3, /127.0.0.1:32998 => /127.0.0.1:33034] FLUSH
10:20:24.158 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d9dd3c3, /127.0.0.1:32998 :> /127.0.0.1:33034] INACTIVE
10:20:24.158 [nioEventLoopGroup-576-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-576-1
10:20:24.158 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0d9dd3c3, /127.0.0.1:32998 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.158 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.160 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b3fa87, /127.0.0.1:33000 => /127.0.0.1:33034] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.161 [nioEventLoopGroup-564-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:24.161 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b3fa87, /127.0.0.1:33000 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.161 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b3fa87, /127.0.0.1:33000 => /127.0.0.1:33034] FLUSH
10:20:24.161 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.161 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b3fa87, /127.0.0.1:33000 => /127.0.0.1:33034] FLUSH
10:20:24.161 [nioEventLoopGroup-577-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-577-1
10:20:24.162 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b3fa87, /127.0.0.1:33000 :> /127.0.0.1:33034] INACTIVE
10:20:24.162 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3b3fa87, /127.0.0.1:33000 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.164 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x562b6ec4, /127.0.0.1:33002 => /127.0.0.1:33034] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33034
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
10:20:24.165 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33034" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.165 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33034" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
10:20:24.166 [nioEventLoopGroup-564-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33034" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
10:20:24.166 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x562b6ec4, /127.0.0.1:33002 => /127.0.0.1:33034] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
10:20:24.166 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x562b6ec4, /127.0.0.1:33002 => /127.0.0.1:33034] FLUSH
10:20:24.168 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x562b6ec4, /127.0.0.1:33002 => /127.0.0.1:33034] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33034
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
10:20:24.168 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33034" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.169 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33034" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
10:20:24.169 [nioEventLoopGroup-564-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33034" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
10:20:24.170 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x562b6ec4, /127.0.0.1:33002 => /127.0.0.1:33034] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
10:20:24.170 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x562b6ec4, /127.0.0.1:33002 => /127.0.0.1:33034] FLUSH
10:20:24.170 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:24.172 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f04879b, /127.0.0.1:33004 => /127.0.0.1:33034] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33034
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:24.173 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f04879b, /127.0.0.1:33004 => /127.0.0.1:33034] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.173 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f04879b, /127.0.0.1:33004 => /127.0.0.1:33034] FLUSH
10:20:24.173 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f04879b, /127.0.0.1:33004 => /127.0.0.1:33034] CLOSE()
10:20:24.173 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.173 [nioEventLoopGroup-578-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-578-1
10:20:24.175 [nioEventLoopGroup-564-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-4
10:20:24.175 [nioEventLoopGroup-564-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-5
10:20:24.175 [nioEventLoopGroup-564-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-1
10:20:24.175 [nioEventLoopGroup-564-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-9
10:20:24.175 [nioEventLoopGroup-564-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-8
10:20:24.175 [nioEventLoopGroup-564-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-13
10:20:24.175 [nioEventLoopGroup-564-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-2
10:20:24.175 [nioEventLoopGroup-564-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-12
10:20:24.175 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x562b6ec4, /127.0.0.1:33002 :> /127.0.0.1:33034] INACTIVE
10:20:24.175 [nioEventLoopGroup-564-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-3
10:20:24.176 [nioEventLoopGroup-564-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-6
10:20:24.176 [nioEventLoopGroup-564-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-7
10:20:24.176 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x562b6ec4, /127.0.0.1:33002 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.176 [nioEventLoopGroup-564-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-10
10:20:24.176 [nioEventLoopGroup-564-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-11
10:20:24.228 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fca8d7, /127.0.0.1:44946 :> /127.0.0.1:35396] FLUSH
10:20:24.229 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fca8d7, /127.0.0.1:44946 :> /127.0.0.1:35396] INACTIVE
10:20:24.229 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fca8d7, /127.0.0.1:44946 :> /127.0.0.1:35396] UNREGISTERED
10:20:24.229 [nioEventLoopGroup-548-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-16
10:20:24.272 [nioEventLoopGroup-532-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-14
10:20:24.530 [MockServer thread for port: 39806] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39806
10:20:24.530 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.533 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fb8fb6d, /127.0.0.1:55446 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.534 [nioEventLoopGroup-580-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:24.534 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fb8fb6d, /127.0.0.1:55446 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.535 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fb8fb6d, /127.0.0.1:55446 => /127.0.0.1:39806] FLUSH
10:20:24.535 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.535 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fb8fb6d, /127.0.0.1:55446 => /127.0.0.1:39806] FLUSH
10:20:24.535 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fb8fb6d, /127.0.0.1:55446 :> /127.0.0.1:39806] INACTIVE
10:20:24.535 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5fb8fb6d, /127.0.0.1:55446 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.536 [nioEventLoopGroup-581-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-581-1
10:20:24.537 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.539 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46197496, /127.0.0.1:55448 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.540 [nioEventLoopGroup-580-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:24.540 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46197496, /127.0.0.1:55448 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.540 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46197496, /127.0.0.1:55448 => /127.0.0.1:39806] FLUSH
10:20:24.540 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.540 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46197496, /127.0.0.1:55448 => /127.0.0.1:39806] FLUSH
10:20:24.540 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46197496, /127.0.0.1:55448 :> /127.0.0.1:39806] INACTIVE
10:20:24.540 [nioEventLoopGroup-582-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-582-1
10:20:24.540 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x46197496, /127.0.0.1:55448 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.541 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.543 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac038d6c, /127.0.0.1:55450 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.544 [nioEventLoopGroup-580-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:24.544 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac038d6c, /127.0.0.1:55450 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.544 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac038d6c, /127.0.0.1:55450 => /127.0.0.1:39806] FLUSH
10:20:24.544 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.544 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac038d6c, /127.0.0.1:55450 => /127.0.0.1:39806] FLUSH
10:20:24.544 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac038d6c, /127.0.0.1:55450 :> /127.0.0.1:39806] INACTIVE
10:20:24.544 [nioEventLoopGroup-583-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-583-1
10:20:24.544 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac038d6c, /127.0.0.1:55450 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.545 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.547 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa125f17c, /127.0.0.1:55452 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.548 [nioEventLoopGroup-580-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:24.548 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa125f17c, /127.0.0.1:55452 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.548 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa125f17c, /127.0.0.1:55452 => /127.0.0.1:39806] FLUSH
10:20:24.548 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa125f17c, /127.0.0.1:55452 => /127.0.0.1:39806] FLUSH
10:20:24.548 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.548 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa125f17c, /127.0.0.1:55452 :> /127.0.0.1:39806] INACTIVE
10:20:24.548 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa125f17c, /127.0.0.1:55452 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.548 [nioEventLoopGroup-584-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-584-1
10:20:24.549 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.551 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1122dd5, /127.0.0.1:55454 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.552 [nioEventLoopGroup-580-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:24.552 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1122dd5, /127.0.0.1:55454 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.552 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1122dd5, /127.0.0.1:55454 => /127.0.0.1:39806] FLUSH
10:20:24.552 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.552 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1122dd5, /127.0.0.1:55454 => /127.0.0.1:39806] FLUSH
10:20:24.553 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1122dd5, /127.0.0.1:55454 :> /127.0.0.1:39806] INACTIVE
10:20:24.553 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1122dd5, /127.0.0.1:55454 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.553 [nioEventLoopGroup-585-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-585-1
10:20:24.554 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.555 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c86efae, /127.0.0.1:55456 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.556 [nioEventLoopGroup-580-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:24.556 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c86efae, /127.0.0.1:55456 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.556 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c86efae, /127.0.0.1:55456 => /127.0.0.1:39806] FLUSH
10:20:24.556 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.557 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c86efae, /127.0.0.1:55456 => /127.0.0.1:39806] FLUSH
10:20:24.557 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c86efae, /127.0.0.1:55456 :> /127.0.0.1:39806] INACTIVE
10:20:24.557 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c86efae, /127.0.0.1:55456 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.557 [nioEventLoopGroup-586-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-586-1
10:20:24.568 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.569 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaa20a20, /127.0.0.1:55458 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.570 [nioEventLoopGroup-580-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:24.570 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaa20a20, /127.0.0.1:55458 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.570 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaa20a20, /127.0.0.1:55458 => /127.0.0.1:39806] FLUSH
10:20:24.570 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaa20a20, /127.0.0.1:55458 => /127.0.0.1:39806] FLUSH
10:20:24.570 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.570 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaa20a20, /127.0.0.1:55458 :> /127.0.0.1:39806] INACTIVE
10:20:24.570 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdaa20a20, /127.0.0.1:55458 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.571 [nioEventLoopGroup-587-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-587-1
10:20:24.571 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.574 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14ca48cf, /127.0.0.1:55460 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.574 [nioEventLoopGroup-580-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:24.574 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14ca48cf, /127.0.0.1:55460 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.574 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14ca48cf, /127.0.0.1:55460 => /127.0.0.1:39806] FLUSH
10:20:24.575 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.575 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14ca48cf, /127.0.0.1:55460 => /127.0.0.1:39806] FLUSH
10:20:24.575 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14ca48cf, /127.0.0.1:55460 :> /127.0.0.1:39806] INACTIVE
10:20:24.575 [nioEventLoopGroup-588-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-588-1
10:20:24.575 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14ca48cf, /127.0.0.1:55460 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.576 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.577 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fdd3e77, /127.0.0.1:55462 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.578 [nioEventLoopGroup-580-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:24.578 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fdd3e77, /127.0.0.1:55462 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.578 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fdd3e77, /127.0.0.1:55462 => /127.0.0.1:39806] FLUSH
10:20:24.578 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.578 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fdd3e77, /127.0.0.1:55462 => /127.0.0.1:39806] FLUSH
10:20:24.578 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fdd3e77, /127.0.0.1:55462 :> /127.0.0.1:39806] INACTIVE
10:20:24.578 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9fdd3e77, /127.0.0.1:55462 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.578 [nioEventLoopGroup-589-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-589-1
10:20:24.579 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.580 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6a9b5, /127.0.0.1:55464 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.581 [nioEventLoopGroup-580-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:24.581 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6a9b5, /127.0.0.1:55464 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.581 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6a9b5, /127.0.0.1:55464 => /127.0.0.1:39806] FLUSH
10:20:24.581 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.581 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6a9b5, /127.0.0.1:55464 => /127.0.0.1:39806] FLUSH
10:20:24.581 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6a9b5, /127.0.0.1:55464 :> /127.0.0.1:39806] INACTIVE
10:20:24.581 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbaf6a9b5, /127.0.0.1:55464 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.581 [nioEventLoopGroup-590-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-590-1
10:20:24.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.583 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11f48788, /127.0.0.1:55466 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.584 [nioEventLoopGroup-580-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:24.584 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11f48788, /127.0.0.1:55466 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.584 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11f48788, /127.0.0.1:55466 => /127.0.0.1:39806] FLUSH
10:20:24.584 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.584 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11f48788, /127.0.0.1:55466 => /127.0.0.1:39806] FLUSH
10:20:24.584 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11f48788, /127.0.0.1:55466 :> /127.0.0.1:39806] INACTIVE
10:20:24.584 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11f48788, /127.0.0.1:55466 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.584 [nioEventLoopGroup-591-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-591-1
10:20:24.585 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.586 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1207ca5c, /127.0.0.1:55468 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.587 [nioEventLoopGroup-580-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:24.587 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1207ca5c, /127.0.0.1:55468 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.587 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1207ca5c, /127.0.0.1:55468 => /127.0.0.1:39806] FLUSH
10:20:24.587 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.587 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1207ca5c, /127.0.0.1:55468 => /127.0.0.1:39806] FLUSH
10:20:24.587 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1207ca5c, /127.0.0.1:55468 :> /127.0.0.1:39806] INACTIVE
10:20:24.587 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1207ca5c, /127.0.0.1:55468 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.587 [nioEventLoopGroup-592-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-592-1
10:20:24.588 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.590 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99c1bd9b, /127.0.0.1:55470 => /127.0.0.1:39806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.590 [nioEventLoopGroup-580-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:24.590 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99c1bd9b, /127.0.0.1:55470 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.590 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99c1bd9b, /127.0.0.1:55470 => /127.0.0.1:39806] FLUSH
10:20:24.591 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.591 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99c1bd9b, /127.0.0.1:55470 => /127.0.0.1:39806] FLUSH
10:20:24.591 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99c1bd9b, /127.0.0.1:55470 :> /127.0.0.1:39806] INACTIVE
10:20:24.591 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99c1bd9b, /127.0.0.1:55470 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.591 [nioEventLoopGroup-593-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-593-1
10:20:24.604 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e1b11c, /127.0.0.1:55472 => /127.0.0.1:39806] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:39806
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:24.604 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.604 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.604 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:24.604 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.604 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.605 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.605 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.605 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.605 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.605 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.605 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.605 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
10:20:24.606 [nioEventLoopGroup-580-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:24.606 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e1b11c, /127.0.0.1:55472 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
10:20:24.606 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e1b11c, /127.0.0.1:55472 => /127.0.0.1:39806] FLUSH
10:20:24.616 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e1b11c, /127.0.0.1:55472 => /127.0.0.1:39806] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:39806
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
10:20:24.616 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.616 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.617 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:24.617 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.617 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.617 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.617 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.617 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.617 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.618 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.618 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.618 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.618 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
10:20:24.618 [nioEventLoopGroup-580-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:24.619 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e1b11c, /127.0.0.1:55472 => /127.0.0.1:39806] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:24.619 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e1b11c, /127.0.0.1:55472 => /127.0.0.1:39806] FLUSH
10:20:24.627 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eae6ce6, /127.0.0.1:55474 => /127.0.0.1:39806] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:39806
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:24.627 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.627 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.627 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:24.627 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.627 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.628 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.628 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.628 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.628 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.628 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.628 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.628 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
10:20:24.629 [nioEventLoopGroup-580-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:24.629 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eae6ce6, /127.0.0.1:55474 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
10:20:24.629 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eae6ce6, /127.0.0.1:55474 => /127.0.0.1:39806] FLUSH
10:20:24.629 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eae6ce6, /127.0.0.1:55474 => /127.0.0.1:39806] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:39806
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
10:20:24.630 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.630 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.630 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:24.630 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.630 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.630 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.631 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.631 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.631 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.631 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.631 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.631 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:24.631 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
10:20:24.632 [nioEventLoopGroup-580-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39806" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:24.632 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eae6ce6, /127.0.0.1:55474 => /127.0.0.1:39806] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:24.632 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eae6ce6, /127.0.0.1:55474 => /127.0.0.1:39806] FLUSH
10:20:24.633 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:24.634 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4658751e, /127.0.0.1:55476 => /127.0.0.1:39806] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39806
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:24.635 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4658751e, /127.0.0.1:55476 => /127.0.0.1:39806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.635 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4658751e, /127.0.0.1:55476 => /127.0.0.1:39806] FLUSH
10:20:24.635 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4658751e, /127.0.0.1:55476 => /127.0.0.1:39806] CLOSE()
10:20:24.635 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.635 [nioEventLoopGroup-594-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-594-1
10:20:24.636 [nioEventLoopGroup-580-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-3
10:20:24.636 [nioEventLoopGroup-580-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-4
10:20:24.636 [nioEventLoopGroup-580-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-2
10:20:24.636 [nioEventLoopGroup-580-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-1
10:20:24.636 [nioEventLoopGroup-580-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-8
10:20:24.636 [nioEventLoopGroup-580-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-5
10:20:24.636 [nioEventLoopGroup-580-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-6
10:20:24.636 [nioEventLoopGroup-580-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-7
10:20:24.636 [nioEventLoopGroup-580-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-9
10:20:24.636 [nioEventLoopGroup-580-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-10
10:20:24.636 [nioEventLoopGroup-580-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-11
10:20:24.637 [nioEventLoopGroup-580-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-12
10:20:24.637 [nioEventLoopGroup-580-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-13
10:20:24.637 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e1b11c, /127.0.0.1:55472 :> /127.0.0.1:39806] INACTIVE
10:20:24.637 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eae6ce6, /127.0.0.1:55474 :> /127.0.0.1:39806] INACTIVE
10:20:24.637 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e1b11c, /127.0.0.1:55472 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.637 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0eae6ce6, /127.0.0.1:55474 :> /127.0.0.1:39806] UNREGISTERED
10:20:24.676 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f04879b, /127.0.0.1:33004 :> /127.0.0.1:33034] FLUSH
10:20:24.676 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f04879b, /127.0.0.1:33004 :> /127.0.0.1:33034] INACTIVE
10:20:24.676 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f04879b, /127.0.0.1:33004 :> /127.0.0.1:33034] UNREGISTERED
10:20:24.676 [nioEventLoopGroup-564-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-15
10:20:24.730 [nioEventLoopGroup-548-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-14
10:20:24.730 [nioEventLoopGroup-548-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-15
10:20:24.989 [MockServer thread for port: 43567] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43567
10:20:24.990 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.994 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7fe52d3, /127.0.0.1:57994 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:24.995 [nioEventLoopGroup-596-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:24.996 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7fe52d3, /127.0.0.1:57994 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:24.996 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7fe52d3, /127.0.0.1:57994 => /127.0.0.1:43567] FLUSH
10:20:24.996 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:24.996 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7fe52d3, /127.0.0.1:57994 => /127.0.0.1:43567] FLUSH
10:20:24.996 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7fe52d3, /127.0.0.1:57994 :> /127.0.0.1:43567] INACTIVE
10:20:24.996 [nioEventLoopGroup-597-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-597-1
10:20:24.996 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe7fe52d3, /127.0.0.1:57994 :> /127.0.0.1:43567] UNREGISTERED
10:20:24.998 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:24.999 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8353aff5, /127.0.0.1:57996 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.000 [nioEventLoopGroup-596-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:25.000 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8353aff5, /127.0.0.1:57996 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.000 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8353aff5, /127.0.0.1:57996 => /127.0.0.1:43567] FLUSH
10:20:25.001 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.001 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8353aff5, /127.0.0.1:57996 => /127.0.0.1:43567] FLUSH
10:20:25.001 [nioEventLoopGroup-598-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-598-1
10:20:25.001 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8353aff5, /127.0.0.1:57996 :> /127.0.0.1:43567] INACTIVE
10:20:25.001 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8353aff5, /127.0.0.1:57996 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.002 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.003 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf760248f, /127.0.0.1:57998 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.004 [nioEventLoopGroup-596-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:25.004 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf760248f, /127.0.0.1:57998 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.004 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf760248f, /127.0.0.1:57998 => /127.0.0.1:43567] FLUSH
10:20:25.004 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.004 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf760248f, /127.0.0.1:57998 => /127.0.0.1:43567] FLUSH
10:20:25.005 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf760248f, /127.0.0.1:57998 :> /127.0.0.1:43567] INACTIVE
10:20:25.005 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf760248f, /127.0.0.1:57998 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.005 [nioEventLoopGroup-599-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-599-1
10:20:25.005 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.007 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022202f1, /127.0.0.1:58000 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.007 [nioEventLoopGroup-596-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:25.007 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022202f1, /127.0.0.1:58000 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.007 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022202f1, /127.0.0.1:58000 => /127.0.0.1:43567] FLUSH
10:20:25.008 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.008 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022202f1, /127.0.0.1:58000 => /127.0.0.1:43567] FLUSH
10:20:25.008 [nioEventLoopGroup-600-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-600-1
10:20:25.008 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022202f1, /127.0.0.1:58000 :> /127.0.0.1:43567] INACTIVE
10:20:25.008 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x022202f1, /127.0.0.1:58000 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.009 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.010 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd55158f, /127.0.0.1:58002 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.011 [nioEventLoopGroup-596-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:25.011 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd55158f, /127.0.0.1:58002 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.011 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd55158f, /127.0.0.1:58002 => /127.0.0.1:43567] FLUSH
10:20:25.011 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.011 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd55158f, /127.0.0.1:58002 => /127.0.0.1:43567] FLUSH
10:20:25.011 [nioEventLoopGroup-601-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-601-1
10:20:25.011 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd55158f, /127.0.0.1:58002 :> /127.0.0.1:43567] INACTIVE
10:20:25.011 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd55158f, /127.0.0.1:58002 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.014 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8fe6569, /127.0.0.1:58004 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.014 [nioEventLoopGroup-596-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:25.015 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8fe6569, /127.0.0.1:58004 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.015 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8fe6569, /127.0.0.1:58004 => /127.0.0.1:43567] FLUSH
10:20:25.015 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.015 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8fe6569, /127.0.0.1:58004 => /127.0.0.1:43567] FLUSH
10:20:25.015 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8fe6569, /127.0.0.1:58004 :> /127.0.0.1:43567] INACTIVE
10:20:25.015 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd8fe6569, /127.0.0.1:58004 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.015 [nioEventLoopGroup-602-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-602-1
10:20:25.016 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.017 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f1c91f9, /127.0.0.1:58006 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.018 [nioEventLoopGroup-596-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:25.018 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f1c91f9, /127.0.0.1:58006 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.018 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f1c91f9, /127.0.0.1:58006 => /127.0.0.1:43567] FLUSH
10:20:25.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.018 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f1c91f9, /127.0.0.1:58006 => /127.0.0.1:43567] FLUSH
10:20:25.018 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f1c91f9, /127.0.0.1:58006 :> /127.0.0.1:43567] INACTIVE
10:20:25.018 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0f1c91f9, /127.0.0.1:58006 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.018 [nioEventLoopGroup-603-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-603-1
10:20:25.019 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.020 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc673452, /127.0.0.1:58008 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.021 [nioEventLoopGroup-596-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:25.021 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc673452, /127.0.0.1:58008 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.021 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc673452, /127.0.0.1:58008 => /127.0.0.1:43567] FLUSH
10:20:25.021 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.021 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc673452, /127.0.0.1:58008 => /127.0.0.1:43567] FLUSH
10:20:25.021 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc673452, /127.0.0.1:58008 :> /127.0.0.1:43567] INACTIVE
10:20:25.021 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc673452, /127.0.0.1:58008 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.021 [nioEventLoopGroup-604-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-604-1
10:20:25.022 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.023 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8909c358, /127.0.0.1:58010 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.024 [nioEventLoopGroup-596-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:25.024 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8909c358, /127.0.0.1:58010 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.024 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8909c358, /127.0.0.1:58010 => /127.0.0.1:43567] FLUSH
10:20:25.024 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.024 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8909c358, /127.0.0.1:58010 => /127.0.0.1:43567] FLUSH
10:20:25.024 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8909c358, /127.0.0.1:58010 :> /127.0.0.1:43567] INACTIVE
10:20:25.024 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8909c358, /127.0.0.1:58010 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.024 [nioEventLoopGroup-605-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-605-1
10:20:25.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.026 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ff1653d, /127.0.0.1:58012 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.027 [nioEventLoopGroup-596-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:25.027 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ff1653d, /127.0.0.1:58012 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.027 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ff1653d, /127.0.0.1:58012 => /127.0.0.1:43567] FLUSH
10:20:25.027 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.027 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ff1653d, /127.0.0.1:58012 => /127.0.0.1:43567] FLUSH
10:20:25.027 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ff1653d, /127.0.0.1:58012 :> /127.0.0.1:43567] INACTIVE
10:20:25.027 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ff1653d, /127.0.0.1:58012 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.027 [nioEventLoopGroup-606-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-606-1
10:20:25.032 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.033 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a029a9f, /127.0.0.1:58014 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.034 [nioEventLoopGroup-596-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:25.034 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a029a9f, /127.0.0.1:58014 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.034 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a029a9f, /127.0.0.1:58014 => /127.0.0.1:43567] FLUSH
10:20:25.034 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.034 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a029a9f, /127.0.0.1:58014 => /127.0.0.1:43567] FLUSH
10:20:25.034 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a029a9f, /127.0.0.1:58014 :> /127.0.0.1:43567] INACTIVE
10:20:25.034 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a029a9f, /127.0.0.1:58014 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.034 [nioEventLoopGroup-607-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-607-1
10:20:25.035 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.036 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc547ca00, /127.0.0.1:58016 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.037 [nioEventLoopGroup-596-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:25.037 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc547ca00, /127.0.0.1:58016 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.037 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc547ca00, /127.0.0.1:58016 => /127.0.0.1:43567] FLUSH
10:20:25.037 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.037 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc547ca00, /127.0.0.1:58016 => /127.0.0.1:43567] FLUSH
10:20:25.037 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc547ca00, /127.0.0.1:58016 :> /127.0.0.1:43567] INACTIVE
10:20:25.037 [nioEventLoopGroup-608-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-608-1
10:20:25.037 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc547ca00, /127.0.0.1:58016 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.038 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.039 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6056f66e, /127.0.0.1:58018 => /127.0.0.1:43567] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.040 [nioEventLoopGroup-596-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:25.040 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6056f66e, /127.0.0.1:58018 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.040 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6056f66e, /127.0.0.1:58018 => /127.0.0.1:43567] FLUSH
10:20:25.040 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.040 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6056f66e, /127.0.0.1:58018 => /127.0.0.1:43567] FLUSH
10:20:25.040 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6056f66e, /127.0.0.1:58018 :> /127.0.0.1:43567] INACTIVE
10:20:25.040 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6056f66e, /127.0.0.1:58018 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.040 [nioEventLoopGroup-609-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-609-1
10:20:25.042 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1686a95, /127.0.0.1:58020 => /127.0.0.1:43567] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43567
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:25.042 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.043 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.043 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:25.043 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.043 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.043 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.044 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.044 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.044 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.044 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.044 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.045 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
10:20:25.045 [nioEventLoopGroup-596-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:25.045 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1686a95, /127.0.0.1:58020 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
10:20:25.045 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1686a95, /127.0.0.1:58020 => /127.0.0.1:43567] FLUSH
10:20:25.048 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1686a95, /127.0.0.1:58020 => /127.0.0.1:43567] FLUSH
10:20:25.048 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1686a95, /127.0.0.1:58020 :> /127.0.0.1:43567] INACTIVE
10:20:25.048 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1686a95, /127.0.0.1:58020 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.049 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaed6993, /127.0.0.1:58022 => /127.0.0.1:43567] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43567
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
10:20:25.050 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.050 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.051 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:25.051 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.051 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.051 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.051 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.052 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.052 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.052 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.052 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.052 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.053 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
10:20:25.053 [nioEventLoopGroup-596-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:25.053 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaed6993, /127.0.0.1:58022 => /127.0.0.1:43567] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:25.053 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaed6993, /127.0.0.1:58022 => /127.0.0.1:43567] FLUSH
10:20:25.055 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaed6993, /127.0.0.1:58022 => /127.0.0.1:43567] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43567
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
10:20:25.055 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.055 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.055 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:25.055 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.056 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.056 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.056 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.056 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.056 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.056 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.057 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.057 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.057 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
10:20:25.057 [nioEventLoopGroup-596-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43567" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:25.058 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaed6993, /127.0.0.1:58022 => /127.0.0.1:43567] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
10:20:25.058 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaed6993, /127.0.0.1:58022 => /127.0.0.1:43567] FLUSH
10:20:25.058 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:25.059 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9431941, /127.0.0.1:58024 => /127.0.0.1:43567] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43567
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:25.060 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9431941, /127.0.0.1:58024 => /127.0.0.1:43567] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.060 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9431941, /127.0.0.1:58024 => /127.0.0.1:43567] FLUSH
10:20:25.060 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9431941, /127.0.0.1:58024 => /127.0.0.1:43567] CLOSE()
10:20:25.060 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.061 [nioEventLoopGroup-610-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-610-1
10:20:25.061 [nioEventLoopGroup-596-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-2
10:20:25.061 [nioEventLoopGroup-596-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-1
10:20:25.061 [nioEventLoopGroup-596-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-3
10:20:25.061 [nioEventLoopGroup-596-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-5
10:20:25.061 [nioEventLoopGroup-596-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-4
10:20:25.061 [nioEventLoopGroup-596-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-7
10:20:25.061 [nioEventLoopGroup-596-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-6
10:20:25.061 [nioEventLoopGroup-596-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-8
10:20:25.061 [nioEventLoopGroup-596-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-10
10:20:25.061 [nioEventLoopGroup-596-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-9
10:20:25.061 [nioEventLoopGroup-596-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-11
10:20:25.061 [nioEventLoopGroup-596-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-12
10:20:25.061 [nioEventLoopGroup-596-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-13
10:20:25.061 [nioEventLoopGroup-596-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-14
10:20:25.061 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaed6993, /127.0.0.1:58022 :> /127.0.0.1:43567] INACTIVE
10:20:25.061 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfaed6993, /127.0.0.1:58022 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.136 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4658751e, /127.0.0.1:55476 :> /127.0.0.1:39806] FLUSH
10:20:25.137 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4658751e, /127.0.0.1:55476 :> /127.0.0.1:39806] INACTIVE
10:20:25.137 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4658751e, /127.0.0.1:55476 :> /127.0.0.1:39806] UNREGISTERED
10:20:25.137 [nioEventLoopGroup-580-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-16
10:20:25.177 [nioEventLoopGroup-564-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-14
10:20:25.416 [MockServer thread for port: 33777] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33777
10:20:25.416 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.419 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c5efc3c, /127.0.0.1:48696 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.421 [nioEventLoopGroup-612-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:25.421 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c5efc3c, /127.0.0.1:48696 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.421 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c5efc3c, /127.0.0.1:48696 => /127.0.0.1:33777] FLUSH
10:20:25.421 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.422 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c5efc3c, /127.0.0.1:48696 => /127.0.0.1:33777] FLUSH
10:20:25.422 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c5efc3c, /127.0.0.1:48696 :> /127.0.0.1:33777] INACTIVE
10:20:25.422 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c5efc3c, /127.0.0.1:48696 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.423 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.424 [nioEventLoopGroup-613-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-613-1
10:20:25.427 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82aba59, /127.0.0.1:48698 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.429 [nioEventLoopGroup-612-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:25.429 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82aba59, /127.0.0.1:48698 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.429 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82aba59, /127.0.0.1:48698 => /127.0.0.1:33777] FLUSH
10:20:25.430 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.430 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82aba59, /127.0.0.1:48698 => /127.0.0.1:33777] FLUSH
10:20:25.430 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82aba59, /127.0.0.1:48698 :> /127.0.0.1:33777] INACTIVE
10:20:25.430 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe82aba59, /127.0.0.1:48698 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.430 [nioEventLoopGroup-614-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-614-1
10:20:25.432 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.434 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92bcd98f, /127.0.0.1:48700 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.435 [nioEventLoopGroup-612-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:25.435 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92bcd98f, /127.0.0.1:48700 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.436 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92bcd98f, /127.0.0.1:48700 => /127.0.0.1:33777] FLUSH
10:20:25.436 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.436 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92bcd98f, /127.0.0.1:48700 => /127.0.0.1:33777] FLUSH
10:20:25.436 [nioEventLoopGroup-615-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-615-1
10:20:25.436 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92bcd98f, /127.0.0.1:48700 :> /127.0.0.1:33777] INACTIVE
10:20:25.436 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92bcd98f, /127.0.0.1:48700 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.440 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bec739, /127.0.0.1:48702 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.440 [nioEventLoopGroup-612-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:25.441 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bec739, /127.0.0.1:48702 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.441 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bec739, /127.0.0.1:48702 => /127.0.0.1:33777] FLUSH
10:20:25.441 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.441 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bec739, /127.0.0.1:48702 => /127.0.0.1:33777] FLUSH
10:20:25.441 [nioEventLoopGroup-616-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-616-1
10:20:25.441 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bec739, /127.0.0.1:48702 :> /127.0.0.1:33777] INACTIVE
10:20:25.441 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38bec739, /127.0.0.1:48702 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.443 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.445 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d0a6d81, /127.0.0.1:48704 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.446 [nioEventLoopGroup-612-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:25.446 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d0a6d81, /127.0.0.1:48704 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.446 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d0a6d81, /127.0.0.1:48704 => /127.0.0.1:33777] FLUSH
10:20:25.446 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.446 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d0a6d81, /127.0.0.1:48704 => /127.0.0.1:33777] FLUSH
10:20:25.446 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d0a6d81, /127.0.0.1:48704 :> /127.0.0.1:33777] INACTIVE
10:20:25.446 [nioEventLoopGroup-617-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-617-1
10:20:25.447 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d0a6d81, /127.0.0.1:48704 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.448 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.450 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ba5548, /127.0.0.1:48706 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.451 [nioEventLoopGroup-612-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:25.451 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ba5548, /127.0.0.1:48706 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.451 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ba5548, /127.0.0.1:48706 => /127.0.0.1:33777] FLUSH
10:20:25.451 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.451 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ba5548, /127.0.0.1:48706 => /127.0.0.1:33777] FLUSH
10:20:25.452 [nioEventLoopGroup-618-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-618-1
10:20:25.452 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ba5548, /127.0.0.1:48706 :> /127.0.0.1:33777] INACTIVE
10:20:25.452 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ba5548, /127.0.0.1:48706 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.453 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.455 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc116e348, /127.0.0.1:48708 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.456 [nioEventLoopGroup-612-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:25.456 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc116e348, /127.0.0.1:48708 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.456 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc116e348, /127.0.0.1:48708 => /127.0.0.1:33777] FLUSH
10:20:25.456 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.456 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc116e348, /127.0.0.1:48708 => /127.0.0.1:33777] FLUSH
10:20:25.456 [nioEventLoopGroup-619-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-619-1
10:20:25.456 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc116e348, /127.0.0.1:48708 :> /127.0.0.1:33777] INACTIVE
10:20:25.456 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc116e348, /127.0.0.1:48708 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.457 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.459 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaca3a64f, /127.0.0.1:48710 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.460 [nioEventLoopGroup-612-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:25.460 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaca3a64f, /127.0.0.1:48710 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.460 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaca3a64f, /127.0.0.1:48710 => /127.0.0.1:33777] FLUSH
10:20:25.461 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.461 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaca3a64f, /127.0.0.1:48710 => /127.0.0.1:33777] FLUSH
10:20:25.461 [nioEventLoopGroup-620-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-620-1
10:20:25.461 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaca3a64f, /127.0.0.1:48710 :> /127.0.0.1:33777] INACTIVE
10:20:25.461 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaca3a64f, /127.0.0.1:48710 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.462 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.464 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf85ea2b6, /127.0.0.1:48712 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.465 [nioEventLoopGroup-612-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:25.465 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf85ea2b6, /127.0.0.1:48712 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.465 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf85ea2b6, /127.0.0.1:48712 => /127.0.0.1:33777] FLUSH
10:20:25.465 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.465 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf85ea2b6, /127.0.0.1:48712 => /127.0.0.1:33777] FLUSH
10:20:25.465 [nioEventLoopGroup-621-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-621-1
10:20:25.465 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf85ea2b6, /127.0.0.1:48712 :> /127.0.0.1:33777] INACTIVE
10:20:25.465 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf85ea2b6, /127.0.0.1:48712 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.466 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.468 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73c50783, /127.0.0.1:48714 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.469 [nioEventLoopGroup-612-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:25.469 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73c50783, /127.0.0.1:48714 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.469 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73c50783, /127.0.0.1:48714 => /127.0.0.1:33777] FLUSH
10:20:25.469 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.469 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73c50783, /127.0.0.1:48714 => /127.0.0.1:33777] FLUSH
10:20:25.470 [nioEventLoopGroup-622-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-622-1
10:20:25.470 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73c50783, /127.0.0.1:48714 :> /127.0.0.1:33777] INACTIVE
10:20:25.470 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x73c50783, /127.0.0.1:48714 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.471 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.473 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef50d3df, /127.0.0.1:48716 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.473 [nioEventLoopGroup-612-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:25.473 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef50d3df, /127.0.0.1:48716 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.473 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef50d3df, /127.0.0.1:48716 => /127.0.0.1:33777] FLUSH
10:20:25.474 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.474 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef50d3df, /127.0.0.1:48716 => /127.0.0.1:33777] FLUSH
10:20:25.474 [nioEventLoopGroup-623-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-623-1
10:20:25.474 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef50d3df, /127.0.0.1:48716 :> /127.0.0.1:33777] INACTIVE
10:20:25.474 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef50d3df, /127.0.0.1:48716 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.475 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.477 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe45437c1, /127.0.0.1:48718 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.478 [nioEventLoopGroup-612-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:25.478 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe45437c1, /127.0.0.1:48718 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.478 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe45437c1, /127.0.0.1:48718 => /127.0.0.1:33777] FLUSH
10:20:25.478 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.478 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe45437c1, /127.0.0.1:48718 => /127.0.0.1:33777] FLUSH
10:20:25.479 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe45437c1, /127.0.0.1:48718 :> /127.0.0.1:33777] INACTIVE
10:20:25.479 [nioEventLoopGroup-624-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-624-1
10:20:25.479 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe45437c1, /127.0.0.1:48718 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.480 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.482 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80f6f8fe, /127.0.0.1:48720 => /127.0.0.1:33777] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.482 [nioEventLoopGroup-612-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:25.483 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80f6f8fe, /127.0.0.1:48720 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.483 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80f6f8fe, /127.0.0.1:48720 => /127.0.0.1:33777] FLUSH
10:20:25.483 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.483 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80f6f8fe, /127.0.0.1:48720 => /127.0.0.1:33777] FLUSH
10:20:25.483 [nioEventLoopGroup-625-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-625-1
10:20:25.483 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80f6f8fe, /127.0.0.1:48720 :> /127.0.0.1:33777] INACTIVE
10:20:25.483 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80f6f8fe, /127.0.0.1:48720 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.492 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b36e1b, /127.0.0.1:48722 => /127.0.0.1:33777] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Host: localhost:33777
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:25.493 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.493 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.493 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:25.493 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.494 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.494 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.494 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
10:20:25.494 [nioEventLoopGroup-612-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:25.495 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b36e1b, /127.0.0.1:48722 => /127.0.0.1:33777] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
10:20:25.495 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b36e1b, /127.0.0.1:48722 => /127.0.0.1:33777] FLUSH
10:20:25.514 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61c298, /127.0.0.1:48724 => /127.0.0.1:33777] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Host: localhost:33777
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
10:20:25.515 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.515 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.515 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:25.515 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.515 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.516 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.516 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
10:20:25.516 [nioEventLoopGroup-612-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33777" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:25.516 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61c298, /127.0.0.1:48724 => /127.0.0.1:33777] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
10:20:25.516 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61c298, /127.0.0.1:48724 => /127.0.0.1:33777] FLUSH
10:20:25.518 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:25.519 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ddc492, /127.0.0.1:48726 => /127.0.0.1:33777] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33777
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:25.520 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ddc492, /127.0.0.1:48726 => /127.0.0.1:33777] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.520 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ddc492, /127.0.0.1:48726 => /127.0.0.1:33777] FLUSH
10:20:25.520 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ddc492, /127.0.0.1:48726 => /127.0.0.1:33777] CLOSE()
10:20:25.520 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.520 [nioEventLoopGroup-626-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-626-1
10:20:25.521 [nioEventLoopGroup-612-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-3
10:20:25.521 [nioEventLoopGroup-612-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-1
10:20:25.521 [nioEventLoopGroup-612-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-2
10:20:25.521 [nioEventLoopGroup-612-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-4
10:20:25.521 [nioEventLoopGroup-612-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-5
10:20:25.521 [nioEventLoopGroup-612-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-6
10:20:25.521 [nioEventLoopGroup-612-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-7
10:20:25.522 [nioEventLoopGroup-612-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-8
10:20:25.522 [nioEventLoopGroup-612-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-10
10:20:25.522 [nioEventLoopGroup-612-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-9
10:20:25.522 [nioEventLoopGroup-612-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-11
10:20:25.522 [nioEventLoopGroup-612-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-12
10:20:25.522 [nioEventLoopGroup-612-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-13
10:20:25.522 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b36e1b, /127.0.0.1:48722 :> /127.0.0.1:33777] INACTIVE
10:20:25.522 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b36e1b, /127.0.0.1:48722 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.522 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61c298, /127.0.0.1:48724 :> /127.0.0.1:33777] INACTIVE
10:20:25.522 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce61c298, /127.0.0.1:48724 :> /127.0.0.1:33777] UNREGISTERED
10:20:25.561 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9431941, /127.0.0.1:58024 :> /127.0.0.1:43567] FLUSH
10:20:25.562 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9431941, /127.0.0.1:58024 :> /127.0.0.1:43567] INACTIVE
10:20:25.562 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc9431941, /127.0.0.1:58024 :> /127.0.0.1:43567] UNREGISTERED
10:20:25.562 [nioEventLoopGroup-596-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-16
10:20:25.638 [nioEventLoopGroup-580-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-14
10:20:25.638 [nioEventLoopGroup-580-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-15
10:20:25.890 [MockServer thread for port: 41996] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41996
10:20:25.891 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.894 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e64edd, /127.0.0.1:36682 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.895 [nioEventLoopGroup-628-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:25.895 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e64edd, /127.0.0.1:36682 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.895 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e64edd, /127.0.0.1:36682 => /127.0.0.1:41996] FLUSH
10:20:25.896 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.896 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e64edd, /127.0.0.1:36682 => /127.0.0.1:41996] FLUSH
10:20:25.896 [nioEventLoopGroup-629-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-629-1
10:20:25.896 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e64edd, /127.0.0.1:36682 :> /127.0.0.1:41996] INACTIVE
10:20:25.896 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84e64edd, /127.0.0.1:36682 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.898 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.900 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6c54361, /127.0.0.1:36684 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.901 [nioEventLoopGroup-628-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:25.901 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6c54361, /127.0.0.1:36684 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.901 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6c54361, /127.0.0.1:36684 => /127.0.0.1:41996] FLUSH
10:20:25.902 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.902 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6c54361, /127.0.0.1:36684 => /127.0.0.1:41996] FLUSH
10:20:25.902 [nioEventLoopGroup-630-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-630-1
10:20:25.902 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6c54361, /127.0.0.1:36684 :> /127.0.0.1:41996] INACTIVE
10:20:25.902 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6c54361, /127.0.0.1:36684 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.903 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.906 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83c04c0d, /127.0.0.1:36686 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.907 [nioEventLoopGroup-628-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:25.908 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83c04c0d, /127.0.0.1:36686 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.908 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83c04c0d, /127.0.0.1:36686 => /127.0.0.1:41996] FLUSH
10:20:25.908 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.908 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83c04c0d, /127.0.0.1:36686 => /127.0.0.1:41996] FLUSH
10:20:25.908 [nioEventLoopGroup-631-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-631-1
10:20:25.908 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83c04c0d, /127.0.0.1:36686 :> /127.0.0.1:41996] INACTIVE
10:20:25.908 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83c04c0d, /127.0.0.1:36686 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.909 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.911 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4122e4, /127.0.0.1:36688 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.912 [nioEventLoopGroup-628-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:25.912 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4122e4, /127.0.0.1:36688 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.912 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4122e4, /127.0.0.1:36688 => /127.0.0.1:41996] FLUSH
10:20:25.912 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.913 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4122e4, /127.0.0.1:36688 => /127.0.0.1:41996] FLUSH
10:20:25.913 [nioEventLoopGroup-632-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-632-1
10:20:25.913 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4122e4, /127.0.0.1:36688 :> /127.0.0.1:41996] INACTIVE
10:20:25.913 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba4122e4, /127.0.0.1:36688 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.914 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.916 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb412384, /127.0.0.1:36690 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.917 [nioEventLoopGroup-628-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:25.917 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb412384, /127.0.0.1:36690 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.917 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb412384, /127.0.0.1:36690 => /127.0.0.1:41996] FLUSH
10:20:25.917 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.918 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb412384, /127.0.0.1:36690 => /127.0.0.1:41996] FLUSH
10:20:25.918 [nioEventLoopGroup-633-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-633-1
10:20:25.918 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb412384, /127.0.0.1:36690 :> /127.0.0.1:41996] INACTIVE
10:20:25.918 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb412384, /127.0.0.1:36690 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.919 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.920 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x640c68d7, /127.0.0.1:36692 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.921 [nioEventLoopGroup-628-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:25.921 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x640c68d7, /127.0.0.1:36692 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.921 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x640c68d7, /127.0.0.1:36692 => /127.0.0.1:41996] FLUSH
10:20:25.922 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.922 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x640c68d7, /127.0.0.1:36692 => /127.0.0.1:41996] FLUSH
10:20:25.922 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x640c68d7, /127.0.0.1:36692 :> /127.0.0.1:41996] INACTIVE
10:20:25.922 [nioEventLoopGroup-634-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-634-1
10:20:25.922 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x640c68d7, /127.0.0.1:36692 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.923 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.924 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fce29ab, /127.0.0.1:36694 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.925 [nioEventLoopGroup-628-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:25.925 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fce29ab, /127.0.0.1:36694 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.925 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fce29ab, /127.0.0.1:36694 => /127.0.0.1:41996] FLUSH
10:20:25.925 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.925 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fce29ab, /127.0.0.1:36694 => /127.0.0.1:41996] FLUSH
10:20:25.926 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fce29ab, /127.0.0.1:36694 :> /127.0.0.1:41996] INACTIVE
10:20:25.926 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0fce29ab, /127.0.0.1:36694 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.926 [nioEventLoopGroup-635-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-635-1
10:20:25.926 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.928 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c7c5641, /127.0.0.1:36696 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.928 [nioEventLoopGroup-628-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:25.928 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c7c5641, /127.0.0.1:36696 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.928 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c7c5641, /127.0.0.1:36696 => /127.0.0.1:41996] FLUSH
10:20:25.929 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.929 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c7c5641, /127.0.0.1:36696 => /127.0.0.1:41996] FLUSH
10:20:25.929 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c7c5641, /127.0.0.1:36696 :> /127.0.0.1:41996] INACTIVE
10:20:25.929 [nioEventLoopGroup-636-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-636-1
10:20:25.929 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c7c5641, /127.0.0.1:36696 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.929 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.931 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebee946, /127.0.0.1:36698 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.931 [nioEventLoopGroup-628-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:25.931 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebee946, /127.0.0.1:36698 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.931 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebee946, /127.0.0.1:36698 => /127.0.0.1:41996] FLUSH
10:20:25.931 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.931 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebee946, /127.0.0.1:36698 => /127.0.0.1:41996] FLUSH
10:20:25.932 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebee946, /127.0.0.1:36698 :> /127.0.0.1:41996] INACTIVE
10:20:25.932 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebee946, /127.0.0.1:36698 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.932 [nioEventLoopGroup-637-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-637-1
10:20:25.932 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.933 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb75e8e0, /127.0.0.1:36700 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.934 [nioEventLoopGroup-628-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:25.934 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb75e8e0, /127.0.0.1:36700 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.934 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb75e8e0, /127.0.0.1:36700 => /127.0.0.1:41996] FLUSH
10:20:25.934 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.934 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb75e8e0, /127.0.0.1:36700 => /127.0.0.1:41996] FLUSH
10:20:25.934 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb75e8e0, /127.0.0.1:36700 :> /127.0.0.1:41996] INACTIVE
10:20:25.934 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb75e8e0, /127.0.0.1:36700 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.934 [nioEventLoopGroup-638-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-638-1
10:20:25.935 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.936 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c9648b2, /127.0.0.1:36702 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.937 [nioEventLoopGroup-628-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:25.937 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c9648b2, /127.0.0.1:36702 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.937 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c9648b2, /127.0.0.1:36702 => /127.0.0.1:41996] FLUSH
10:20:25.937 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.937 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c9648b2, /127.0.0.1:36702 => /127.0.0.1:41996] FLUSH
10:20:25.937 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c9648b2, /127.0.0.1:36702 :> /127.0.0.1:41996] INACTIVE
10:20:25.937 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c9648b2, /127.0.0.1:36702 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.937 [nioEventLoopGroup-639-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-639-1
10:20:25.938 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.939 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d2cc04, /127.0.0.1:36704 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.940 [nioEventLoopGroup-628-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:25.940 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d2cc04, /127.0.0.1:36704 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.940 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d2cc04, /127.0.0.1:36704 => /127.0.0.1:41996] FLUSH
10:20:25.940 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.940 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d2cc04, /127.0.0.1:36704 => /127.0.0.1:41996] FLUSH
10:20:25.941 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d2cc04, /127.0.0.1:36704 :> /127.0.0.1:41996] INACTIVE
10:20:25.941 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x32d2cc04, /127.0.0.1:36704 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.941 [nioEventLoopGroup-640-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-640-1
10:20:25.941 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:25.943 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef523f6d, /127.0.0.1:36706 => /127.0.0.1:41996] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:25.943 [nioEventLoopGroup-628-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:25.944 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef523f6d, /127.0.0.1:36706 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.944 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef523f6d, /127.0.0.1:36706 => /127.0.0.1:41996] FLUSH
10:20:25.944 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.944 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef523f6d, /127.0.0.1:36706 => /127.0.0.1:41996] FLUSH
10:20:25.944 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef523f6d, /127.0.0.1:36706 :> /127.0.0.1:41996] INACTIVE
10:20:25.944 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef523f6d, /127.0.0.1:36706 :> /127.0.0.1:41996] UNREGISTERED
10:20:25.944 [nioEventLoopGroup-641-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-641-1
10:20:25.946 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a9f3b9, /127.0.0.1:36708 => /127.0.0.1:41996] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41996
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:25.946 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.947 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.947 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:25.947 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.947 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.947 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.948 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
10:20:25.948 [nioEventLoopGroup-628-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:25.948 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a9f3b9, /127.0.0.1:36708 => /127.0.0.1:41996] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
10:20:25.948 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a9f3b9, /127.0.0.1:36708 => /127.0.0.1:41996] FLUSH
10:20:25.953 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a9f3b9, /127.0.0.1:36708 => /127.0.0.1:41996] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41996
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
10:20:25.953 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.953 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.953 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
10:20:25.954 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.954 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.954 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
10:20:25.954 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
10:20:25.954 [nioEventLoopGroup-628-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41996" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
10:20:25.955 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a9f3b9, /127.0.0.1:36708 => /127.0.0.1:41996] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
10:20:25.955 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a9f3b9, /127.0.0.1:36708 => /127.0.0.1:41996] FLUSH
10:20:25.955 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:25.957 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00c2dfdb, /127.0.0.1:36710 => /127.0.0.1:41996] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41996
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:25.957 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00c2dfdb, /127.0.0.1:36710 => /127.0.0.1:41996] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:25.957 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00c2dfdb, /127.0.0.1:36710 => /127.0.0.1:41996] FLUSH
10:20:25.957 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00c2dfdb, /127.0.0.1:36710 => /127.0.0.1:41996] CLOSE()
10:20:25.957 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:25.958 [nioEventLoopGroup-642-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-642-1
10:20:25.958 [nioEventLoopGroup-628-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-1
10:20:25.958 [nioEventLoopGroup-628-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-3
10:20:25.958 [nioEventLoopGroup-628-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-7
10:20:25.958 [nioEventLoopGroup-628-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-8
10:20:25.958 [nioEventLoopGroup-628-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-5
10:20:25.958 [nioEventLoopGroup-628-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-2
10:20:25.958 [nioEventLoopGroup-628-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-6
10:20:25.958 [nioEventLoopGroup-628-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-4
10:20:25.958 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a9f3b9, /127.0.0.1:36708 :> /127.0.0.1:41996] INACTIVE
10:20:25.958 [nioEventLoopGroup-628-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-13
10:20:25.958 [nioEventLoopGroup-628-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-9
10:20:25.959 [nioEventLoopGroup-628-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-10
10:20:25.959 [nioEventLoopGroup-628-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-11
10:20:25.959 [nioEventLoopGroup-628-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-12
10:20:25.959 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7a9f3b9, /127.0.0.1:36708 :> /127.0.0.1:41996] UNREGISTERED
10:20:26.022 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ddc492, /127.0.0.1:48726 :> /127.0.0.1:33777] FLUSH
10:20:26.022 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ddc492, /127.0.0.1:48726 :> /127.0.0.1:33777] INACTIVE
10:20:26.022 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x24ddc492, /127.0.0.1:48726 :> /127.0.0.1:33777] UNREGISTERED
10:20:26.022 [nioEventLoopGroup-612-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-16
10:20:26.062 [nioEventLoopGroup-596-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-15
10:20:26.312 [MockServer thread for port: 42732] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42732
10:20:26.312 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.316 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42fa35a2, /127.0.0.1:50734 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.317 [nioEventLoopGroup-644-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:26.317 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42fa35a2, /127.0.0.1:50734 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.317 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42fa35a2, /127.0.0.1:50734 => /127.0.0.1:42732] FLUSH
10:20:26.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.318 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42fa35a2, /127.0.0.1:50734 => /127.0.0.1:42732] FLUSH
10:20:26.318 [nioEventLoopGroup-645-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-645-1
10:20:26.318 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42fa35a2, /127.0.0.1:50734 :> /127.0.0.1:42732] INACTIVE
10:20:26.318 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x42fa35a2, /127.0.0.1:50734 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.319 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.321 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f86c48e, /127.0.0.1:50736 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.322 [nioEventLoopGroup-644-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:26.322 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f86c48e, /127.0.0.1:50736 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.322 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f86c48e, /127.0.0.1:50736 => /127.0.0.1:42732] FLUSH
10:20:26.322 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.322 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f86c48e, /127.0.0.1:50736 => /127.0.0.1:42732] FLUSH
10:20:26.322 [nioEventLoopGroup-646-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-646-1
10:20:26.322 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f86c48e, /127.0.0.1:50736 :> /127.0.0.1:42732] INACTIVE
10:20:26.322 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5f86c48e, /127.0.0.1:50736 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.323 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.326 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83794395, /127.0.0.1:50738 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.327 [nioEventLoopGroup-644-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:26.327 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83794395, /127.0.0.1:50738 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.327 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83794395, /127.0.0.1:50738 => /127.0.0.1:42732] FLUSH
10:20:26.328 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.328 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83794395, /127.0.0.1:50738 => /127.0.0.1:42732] FLUSH
10:20:26.328 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83794395, /127.0.0.1:50738 :> /127.0.0.1:42732] INACTIVE
10:20:26.328 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83794395, /127.0.0.1:50738 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.328 [nioEventLoopGroup-647-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-647-1
10:20:26.329 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.330 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0491cde, /127.0.0.1:50740 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.331 [nioEventLoopGroup-644-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:26.331 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0491cde, /127.0.0.1:50740 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.331 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0491cde, /127.0.0.1:50740 => /127.0.0.1:42732] FLUSH
10:20:26.331 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.331 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0491cde, /127.0.0.1:50740 => /127.0.0.1:42732] FLUSH
10:20:26.331 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0491cde, /127.0.0.1:50740 :> /127.0.0.1:42732] INACTIVE
10:20:26.331 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0491cde, /127.0.0.1:50740 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.331 [nioEventLoopGroup-648-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-648-1
10:20:26.332 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.333 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50a955b6, /127.0.0.1:50742 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.334 [nioEventLoopGroup-644-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:26.334 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50a955b6, /127.0.0.1:50742 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.334 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50a955b6, /127.0.0.1:50742 => /127.0.0.1:42732] FLUSH
10:20:26.334 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.334 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50a955b6, /127.0.0.1:50742 => /127.0.0.1:42732] FLUSH
10:20:26.334 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50a955b6, /127.0.0.1:50742 :> /127.0.0.1:42732] INACTIVE
10:20:26.334 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50a955b6, /127.0.0.1:50742 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.334 [nioEventLoopGroup-649-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-649-1
10:20:26.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.337 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15e0922b, /127.0.0.1:50744 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.338 [nioEventLoopGroup-644-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:26.338 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15e0922b, /127.0.0.1:50744 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.338 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15e0922b, /127.0.0.1:50744 => /127.0.0.1:42732] FLUSH
10:20:26.338 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.338 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15e0922b, /127.0.0.1:50744 => /127.0.0.1:42732] FLUSH
10:20:26.339 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15e0922b, /127.0.0.1:50744 :> /127.0.0.1:42732] INACTIVE
10:20:26.339 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x15e0922b, /127.0.0.1:50744 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.339 [nioEventLoopGroup-650-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-650-1
10:20:26.340 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.341 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf228f4d, /127.0.0.1:50746 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.342 [nioEventLoopGroup-644-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:26.342 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf228f4d, /127.0.0.1:50746 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.342 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf228f4d, /127.0.0.1:50746 => /127.0.0.1:42732] FLUSH
10:20:26.342 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.342 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf228f4d, /127.0.0.1:50746 => /127.0.0.1:42732] FLUSH
10:20:26.342 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf228f4d, /127.0.0.1:50746 :> /127.0.0.1:42732] INACTIVE
10:20:26.342 [nioEventLoopGroup-651-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-651-1
10:20:26.343 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcf228f4d, /127.0.0.1:50746 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.343 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.345 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd85e2c0, /127.0.0.1:50748 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.345 [nioEventLoopGroup-644-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:26.345 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd85e2c0, /127.0.0.1:50748 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.345 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd85e2c0, /127.0.0.1:50748 => /127.0.0.1:42732] FLUSH
10:20:26.345 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.346 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd85e2c0, /127.0.0.1:50748 => /127.0.0.1:42732] FLUSH
10:20:26.346 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd85e2c0, /127.0.0.1:50748 :> /127.0.0.1:42732] INACTIVE
10:20:26.346 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd85e2c0, /127.0.0.1:50748 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.346 [nioEventLoopGroup-652-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-652-1
10:20:26.346 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.348 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa127528c, /127.0.0.1:50750 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.348 [nioEventLoopGroup-644-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:26.348 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa127528c, /127.0.0.1:50750 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.348 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa127528c, /127.0.0.1:50750 => /127.0.0.1:42732] FLUSH
10:20:26.349 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.349 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa127528c, /127.0.0.1:50750 => /127.0.0.1:42732] FLUSH
10:20:26.349 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa127528c, /127.0.0.1:50750 :> /127.0.0.1:42732] INACTIVE
10:20:26.349 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa127528c, /127.0.0.1:50750 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.349 [nioEventLoopGroup-653-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-653-1
10:20:26.349 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.351 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb52d649, /127.0.0.1:50752 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.351 [nioEventLoopGroup-644-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:26.351 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb52d649, /127.0.0.1:50752 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.351 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb52d649, /127.0.0.1:50752 => /127.0.0.1:42732] FLUSH
10:20:26.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.352 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb52d649, /127.0.0.1:50752 => /127.0.0.1:42732] FLUSH
10:20:26.352 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb52d649, /127.0.0.1:50752 :> /127.0.0.1:42732] INACTIVE
10:20:26.352 [nioEventLoopGroup-654-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-654-1
10:20:26.352 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb52d649, /127.0.0.1:50752 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.354 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50fcdb17, /127.0.0.1:50754 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.354 [nioEventLoopGroup-644-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:26.354 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50fcdb17, /127.0.0.1:50754 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.354 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50fcdb17, /127.0.0.1:50754 => /127.0.0.1:42732] FLUSH
10:20:26.354 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.354 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50fcdb17, /127.0.0.1:50754 => /127.0.0.1:42732] FLUSH
10:20:26.355 [nioEventLoopGroup-655-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-655-1
10:20:26.355 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50fcdb17, /127.0.0.1:50754 :> /127.0.0.1:42732] INACTIVE
10:20:26.355 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50fcdb17, /127.0.0.1:50754 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.355 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.357 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5022c601, /127.0.0.1:50756 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.358 [nioEventLoopGroup-644-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:26.358 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5022c601, /127.0.0.1:50756 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.359 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5022c601, /127.0.0.1:50756 => /127.0.0.1:42732] FLUSH
10:20:26.359 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.359 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5022c601, /127.0.0.1:50756 => /127.0.0.1:42732] FLUSH
10:20:26.359 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5022c601, /127.0.0.1:50756 :> /127.0.0.1:42732] INACTIVE
10:20:26.359 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5022c601, /127.0.0.1:50756 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.359 [nioEventLoopGroup-656-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-656-1
10:20:26.360 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:26.362 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cd47cc5, /127.0.0.1:50758 => /127.0.0.1:42732] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:26.362 [nioEventLoopGroup-644-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:26.363 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cd47cc5, /127.0.0.1:50758 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:26.363 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cd47cc5, /127.0.0.1:50758 => /127.0.0.1:42732] FLUSH
10:20:26.363 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:26.363 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cd47cc5, /127.0.0.1:50758 => /127.0.0.1:42732] FLUSH
10:20:26.363 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cd47cc5, /127.0.0.1:50758 :> /127.0.0.1:42732] INACTIVE
10:20:26.363 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2cd47cc5, /127.0.0.1:50758 :> /127.0.0.1:42732] UNREGISTERED
10:20:26.363 [nioEventLoopGroup-657-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-657-1
10:20:26.459 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00c2dfdb, /127.0.0.1:36710 :> /127.0.0.1:41996] FLUSH
10:20:26.459 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00c2dfdb, /127.0.0.1:36710 :> /127.0.0.1:41996] INACTIVE
10:20:26.459 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x00c2dfdb, /127.0.0.1:36710 :> /127.0.0.1:41996] UNREGISTERED
10:20:26.460 [nioEventLoopGroup-628-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-15
10:20:26.523 [nioEventLoopGroup-612-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-14
10:20:26.523 [nioEventLoopGroup-612-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-15
10:20:26.960 [nioEventLoopGroup-628-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-14
10:20:27.575 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:27.579 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa231030f, /127.0.0.1:50764 => /127.0.0.1:42732] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42732
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:27.579 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa231030f, /127.0.0.1:50764 => /127.0.0.1:42732] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.579 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa231030f, /127.0.0.1:50764 => /127.0.0.1:42732] FLUSH
10:20:27.580 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa231030f, /127.0.0.1:50764 => /127.0.0.1:42732] CLOSE()
10:20:27.580 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.580 [nioEventLoopGroup-658-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-658-1
10:20:27.583 [nioEventLoopGroup-644-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-1
10:20:27.583 [nioEventLoopGroup-644-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-2
10:20:27.583 [nioEventLoopGroup-644-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-4
10:20:27.583 [nioEventLoopGroup-644-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-6
10:20:27.583 [nioEventLoopGroup-644-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-12
10:20:27.583 [nioEventLoopGroup-644-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-13
10:20:27.583 [nioEventLoopGroup-644-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-3
10:20:27.583 [nioEventLoopGroup-644-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-5
10:20:27.583 [nioEventLoopGroup-644-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-7
10:20:27.583 [nioEventLoopGroup-644-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-9
10:20:27.583 [nioEventLoopGroup-644-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-8
10:20:27.583 [nioEventLoopGroup-644-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-11
10:20:27.583 [nioEventLoopGroup-644-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-10
10:20:27.938 [MockServer thread for port: 39107] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39107
10:20:27.938 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.942 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45989f5c, /127.0.0.1:59596 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.943 [nioEventLoopGroup-660-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:27.944 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45989f5c, /127.0.0.1:59596 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.944 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45989f5c, /127.0.0.1:59596 => /127.0.0.1:39107] FLUSH
10:20:27.944 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.945 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45989f5c, /127.0.0.1:59596 => /127.0.0.1:39107] FLUSH
10:20:27.945 [nioEventLoopGroup-661-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-661-1
10:20:27.945 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45989f5c, /127.0.0.1:59596 :> /127.0.0.1:39107] INACTIVE
10:20:27.945 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45989f5c, /127.0.0.1:59596 :> /127.0.0.1:39107] UNREGISTERED
10:20:27.947 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.951 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a8806f, /127.0.0.1:59598 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.952 [nioEventLoopGroup-660-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
10:20:27.953 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a8806f, /127.0.0.1:59598 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.953 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a8806f, /127.0.0.1:59598 => /127.0.0.1:39107] FLUSH
10:20:27.953 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.954 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a8806f, /127.0.0.1:59598 => /127.0.0.1:39107] FLUSH
10:20:27.954 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a8806f, /127.0.0.1:59598 :> /127.0.0.1:39107] INACTIVE
10:20:27.954 [nioEventLoopGroup-662-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-662-1
10:20:27.954 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a8806f, /127.0.0.1:59598 :> /127.0.0.1:39107] UNREGISTERED
10:20:27.956 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.959 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19a4a53, /127.0.0.1:59600 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.960 [nioEventLoopGroup-660-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
10:20:27.961 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19a4a53, /127.0.0.1:59600 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.961 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19a4a53, /127.0.0.1:59600 => /127.0.0.1:39107] FLUSH
10:20:27.962 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.962 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19a4a53, /127.0.0.1:59600 => /127.0.0.1:39107] FLUSH
10:20:27.962 [nioEventLoopGroup-663-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-663-1
10:20:27.962 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19a4a53, /127.0.0.1:59600 :> /127.0.0.1:39107] INACTIVE
10:20:27.962 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19a4a53, /127.0.0.1:59600 :> /127.0.0.1:39107] UNREGISTERED
10:20:27.964 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.967 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bf26b59, /127.0.0.1:59602 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.968 [nioEventLoopGroup-660-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:27.968 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bf26b59, /127.0.0.1:59602 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.969 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bf26b59, /127.0.0.1:59602 => /127.0.0.1:39107] FLUSH
10:20:27.969 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.969 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bf26b59, /127.0.0.1:59602 => /127.0.0.1:39107] FLUSH
10:20:27.969 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bf26b59, /127.0.0.1:59602 :> /127.0.0.1:39107] INACTIVE
10:20:27.969 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8bf26b59, /127.0.0.1:59602 :> /127.0.0.1:39107] UNREGISTERED
10:20:27.969 [nioEventLoopGroup-664-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-664-1
10:20:27.970 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.973 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e1295cc, /127.0.0.1:59604 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.974 [nioEventLoopGroup-660-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
10:20:27.974 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e1295cc, /127.0.0.1:59604 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.974 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e1295cc, /127.0.0.1:59604 => /127.0.0.1:39107] FLUSH
10:20:27.974 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.975 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e1295cc, /127.0.0.1:59604 => /127.0.0.1:39107] FLUSH
10:20:27.975 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e1295cc, /127.0.0.1:59604 :> /127.0.0.1:39107] INACTIVE
10:20:27.975 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e1295cc, /127.0.0.1:59604 :> /127.0.0.1:39107] UNREGISTERED
10:20:27.975 [nioEventLoopGroup-665-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-665-1
10:20:27.978 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.982 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95208700, /127.0.0.1:59606 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.982 [nioEventLoopGroup-660-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
10:20:27.983 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95208700, /127.0.0.1:59606 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.983 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95208700, /127.0.0.1:59606 => /127.0.0.1:39107] FLUSH
10:20:27.983 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.983 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95208700, /127.0.0.1:59606 => /127.0.0.1:39107] FLUSH
10:20:27.983 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95208700, /127.0.0.1:59606 :> /127.0.0.1:39107] INACTIVE
10:20:27.983 [nioEventLoopGroup-666-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-666-1
10:20:27.984 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x95208700, /127.0.0.1:59606 :> /127.0.0.1:39107] UNREGISTERED
10:20:27.985 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.987 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20a043be, /127.0.0.1:59608 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.988 [nioEventLoopGroup-660-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
10:20:27.988 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20a043be, /127.0.0.1:59608 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.988 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20a043be, /127.0.0.1:59608 => /127.0.0.1:39107] FLUSH
10:20:27.988 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.988 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20a043be, /127.0.0.1:59608 => /127.0.0.1:39107] FLUSH
10:20:27.988 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20a043be, /127.0.0.1:59608 :> /127.0.0.1:39107] INACTIVE
10:20:27.988 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x20a043be, /127.0.0.1:59608 :> /127.0.0.1:39107] UNREGISTERED
10:20:27.988 [nioEventLoopGroup-667-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-667-1
10:20:27.989 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.991 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c1f6d30, /127.0.0.1:59610 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.992 [nioEventLoopGroup-660-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
10:20:27.992 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c1f6d30, /127.0.0.1:59610 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.992 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c1f6d30, /127.0.0.1:59610 => /127.0.0.1:39107] FLUSH
10:20:27.992 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:27.992 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c1f6d30, /127.0.0.1:59610 => /127.0.0.1:39107] FLUSH
10:20:27.993 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c1f6d30, /127.0.0.1:59610 :> /127.0.0.1:39107] INACTIVE
10:20:27.993 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c1f6d30, /127.0.0.1:59610 :> /127.0.0.1:39107] UNREGISTERED
10:20:27.993 [nioEventLoopGroup-668-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-668-1
10:20:27.997 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:27.999 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26b7dc70, /127.0.0.1:59612 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:27.999 [nioEventLoopGroup-660-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
10:20:27.999 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26b7dc70, /127.0.0.1:59612 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:27.999 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26b7dc70, /127.0.0.1:59612 => /127.0.0.1:39107] FLUSH
10:20:28.000 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:28.000 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26b7dc70, /127.0.0.1:59612 => /127.0.0.1:39107] FLUSH
10:20:28.000 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26b7dc70, /127.0.0.1:59612 :> /127.0.0.1:39107] INACTIVE
10:20:28.000 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26b7dc70, /127.0.0.1:59612 :> /127.0.0.1:39107] UNREGISTERED
10:20:28.000 [nioEventLoopGroup-669-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-669-1
10:20:28.001 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:28.004 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1881505c, /127.0.0.1:59614 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:28.004 [nioEventLoopGroup-660-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
10:20:28.004 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1881505c, /127.0.0.1:59614 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:28.004 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1881505c, /127.0.0.1:59614 => /127.0.0.1:39107] FLUSH
10:20:28.005 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:28.005 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1881505c, /127.0.0.1:59614 => /127.0.0.1:39107] FLUSH
10:20:28.005 [nioEventLoopGroup-670-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-670-1
10:20:28.005 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1881505c, /127.0.0.1:59614 :> /127.0.0.1:39107] INACTIVE
10:20:28.005 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1881505c, /127.0.0.1:59614 :> /127.0.0.1:39107] UNREGISTERED
10:20:28.006 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:28.008 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0a7f870, /127.0.0.1:59616 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:28.008 [nioEventLoopGroup-660-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
10:20:28.009 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0a7f870, /127.0.0.1:59616 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:28.009 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0a7f870, /127.0.0.1:59616 => /127.0.0.1:39107] FLUSH
10:20:28.009 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:28.009 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0a7f870, /127.0.0.1:59616 => /127.0.0.1:39107] FLUSH
10:20:28.009 [nioEventLoopGroup-671-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-671-1
10:20:28.009 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0a7f870, /127.0.0.1:59616 :> /127.0.0.1:39107] INACTIVE
10:20:28.009 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb0a7f870, /127.0.0.1:59616 :> /127.0.0.1:39107] UNREGISTERED
10:20:28.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:28.014 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55a3d8ab, /127.0.0.1:59618 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:28.015 [nioEventLoopGroup-660-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
10:20:28.015 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55a3d8ab, /127.0.0.1:59618 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:28.015 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55a3d8ab, /127.0.0.1:59618 => /127.0.0.1:39107] FLUSH
10:20:28.015 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:28.015 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55a3d8ab, /127.0.0.1:59618 => /127.0.0.1:39107] FLUSH
10:20:28.015 [nioEventLoopGroup-672-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-672-1
10:20:28.015 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55a3d8ab, /127.0.0.1:59618 :> /127.0.0.1:39107] INACTIVE
10:20:28.015 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55a3d8ab, /127.0.0.1:59618 :> /127.0.0.1:39107] UNREGISTERED
10:20:28.016 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
10:20:28.018 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc643b5c9, /127.0.0.1:59620 => /127.0.0.1:39107] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
10:20:28.019 [nioEventLoopGroup-660-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
10:20:28.019 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc643b5c9, /127.0.0.1:59620 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:28.019 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc643b5c9, /127.0.0.1:59620 => /127.0.0.1:39107] FLUSH
10:20:28.019 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:28.019 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc643b5c9, /127.0.0.1:59620 => /127.0.0.1:39107] FLUSH
10:20:28.019 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc643b5c9, /127.0.0.1:59620 :> /127.0.0.1:39107] INACTIVE
10:20:28.019 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc643b5c9, /127.0.0.1:59620 :> /127.0.0.1:39107] UNREGISTERED
10:20:28.020 [nioEventLoopGroup-673-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-673-1
10:20:28.083 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa231030f, /127.0.0.1:50764 :> /127.0.0.1:42732] FLUSH
10:20:28.083 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa231030f, /127.0.0.1:50764 :> /127.0.0.1:42732] INACTIVE
10:20:28.083 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa231030f, /127.0.0.1:50764 :> /127.0.0.1:42732] UNREGISTERED
10:20:28.083 [nioEventLoopGroup-644-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-14
10:20:28.818 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
10:20:28.821 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ae3e57, /127.0.0.1:59626 => /127.0.0.1:39107] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39107
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
10:20:28.822 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ae3e57, /127.0.0.1:59626 => /127.0.0.1:39107] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
10:20:28.822 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ae3e57, /127.0.0.1:59626 => /127.0.0.1:39107] FLUSH
10:20:28.822 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8ae3e57, /127.0.0.1:59626 => /127.0.0.1:39107] CLOSE()
10:20:28.823 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
10:20:28.823 [nioEventLoopGroup-674-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-674-1
10:20:28.825 [nioEventLoopGroup-660-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-1
10:20:28.825 [nioEventLoopGroup-660-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-2
10:20:28.825 [nioEventLoopGroup-660-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-3
10:20:28.826 [nioEventLoopGroup-660-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-4
10:20:28.826 [nioEventLoopGroup-660-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-5
10:20:28.826 [nioEventLoopGroup-660-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-7
10:20:28.826 [nioEventLoopGroup-660-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-6
10:20:28.826 [nioEventLoopGroup-660-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-8
10:20:28.826 [nioEventLoopGroup-660-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-9
10:20:28.826 [nioEventLoopGroup-660-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-11
10:20:28.826 [nioEventLoopGroup-660-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-10
10:20:28.826 [nioEventLoopGroup-660-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-13
10:20:28.826 [nioEventLoopGroup-660-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-660-12